Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Common / AuthoringOM / Helpers.cs / 1305376 / Helpers.cs
namespace System.Workflow.ComponentModel { using System; using System.Collections; using System.Collections.Specialized; using System.Collections.Generic; using System.CodeDom; using System.Workflow.ComponentModel.Design; using System.Diagnostics; using System.Reflection; internal static class InternalHelpers { // Should only be called for BuiltIn activities internal static string GenerateQualifiedNameForLockedActivity(Activity activity, string id) { System.Text.StringBuilder sbQId = new System.Text.StringBuilder(); // Walk up the parent chain to find the custom activity that contains this built-in activity // and prepend the ID of the custom activity to the front of the qualified ID of this activity. Debug.Assert(activity.Parent != null, "If this is a built-in activity, its parent should never be null."); string newID = (string.IsNullOrEmpty(id)) ? activity.Name : id; CompositeActivity customActivity = Helpers.GetDeclaringActivity(activity); if (customActivity != null) // sbQId.Append(customActivity.QualifiedName).Append(".").Append(newID); else sbQId.Append(newID); return sbQId.ToString(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. namespace System.Workflow.ComponentModel { using System; using System.Collections; using System.Collections.Specialized; using System.Collections.Generic; using System.CodeDom; using System.Workflow.ComponentModel.Design; using System.Diagnostics; using System.Reflection; internal static class InternalHelpers { // Should only be called for BuiltIn activities internal static string GenerateQualifiedNameForLockedActivity(Activity activity, string id) { System.Text.StringBuilder sbQId = new System.Text.StringBuilder(); // Walk up the parent chain to find the custom activity that contains this built-in activity // and prepend the ID of the custom activity to the front of the qualified ID of this activity. Debug.Assert(activity.Parent != null, "If this is a built-in activity, its parent should never be null."); string newID = (string.IsNullOrEmpty(id)) ? activity.Name : id; CompositeActivity customActivity = Helpers.GetDeclaringActivity(activity); if (customActivity != null) // sbQId.Append(customActivity.QualifiedName).Append(".").Append(newID); else sbQId.Append(newID); return sbQId.ToString(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AnnotationStore.cs
- DataGridViewTextBoxCell.cs
- SendKeys.cs
- SiteMapDataSource.cs
- GridItem.cs
- SiteMapNodeItem.cs
- OneOf.cs
- DataIdProcessor.cs
- SystemIdentity.cs
- ArgumentDirectionHelper.cs
- SecurityContextSecurityTokenResolver.cs
- LineGeometry.cs
- NodeFunctions.cs
- BindingCompleteEventArgs.cs
- EventLogEntryCollection.cs
- BindingManagerDataErrorEventArgs.cs
- DefaultHttpHandler.cs
- LicFileLicenseProvider.cs
- SqlGatherConsumedAliases.cs
- ValidatorCollection.cs
- PKCS1MaskGenerationMethod.cs
- EventWaitHandle.cs
- DataGridViewCellCollection.cs
- DataGridViewCellPaintingEventArgs.cs
- PageCache.cs
- ConfigXmlAttribute.cs
- EventSetterHandlerConverter.cs
- DataTemplateSelector.cs
- SignedPkcs7.cs
- XmlSerializer.cs
- SpecularMaterial.cs
- SQLResource.cs
- XslCompiledTransform.cs
- LocatorManager.cs
- ProgressChangedEventArgs.cs
- Method.cs
- BlurEffect.cs
- ObjectDataSourceWizardForm.cs
- LocationSectionRecord.cs
- ThreadExceptionDialog.cs
- IResourceProvider.cs
- TypeRestriction.cs
- EdmEntityTypeAttribute.cs
- AnimationException.cs
- TypeNameParser.cs
- SimpleFieldTemplateUserControl.cs
- Vector3dCollection.cs
- ProfileGroupSettingsCollection.cs
- ActivityCollectionMarkupSerializer.cs
- CodePageEncoding.cs
- CodeRegionDirective.cs
- CompModSwitches.cs
- UserControlDesigner.cs
- ThumbAutomationPeer.cs
- SelfIssuedAuthRSAPKCS1SignatureDeformatter.cs
- ToolStripKeyboardHandlingService.cs
- TextFragmentEngine.cs
- TreeNodeCollection.cs
- DrawingGroup.cs
- WebDescriptionAttribute.cs
- IPHostEntry.cs
- OrElse.cs
- DataGridRow.cs
- GeometryCombineModeValidation.cs
- PeerNodeAddress.cs
- ParameterBuilder.cs
- ThreadAttributes.cs
- BooleanSwitch.cs
- IncrementalHitTester.cs
- Rect3D.cs
- WorkflowShape.cs
- ServiceHostingEnvironment.cs
- CopyNamespacesAction.cs
- XmlDataLoader.cs
- TreeViewCancelEvent.cs
- COM2ExtendedTypeConverter.cs
- HTTPNotFoundHandler.cs
- SchemaCollectionCompiler.cs
- MethodRental.cs
- XmlObjectSerializer.cs
- DesignerGenericWebPart.cs
- Exceptions.cs
- SystemKeyConverter.cs
- recordstatefactory.cs
- ButtonChrome.cs
- ListenerElementsCollection.cs
- TableCellAutomationPeer.cs
- MethodAccessException.cs
- DrawingServices.cs
- XmlQueryOutput.cs
- DbSetClause.cs
- SmiContextFactory.cs
- MetaDataInfo.cs
- MenuItemAutomationPeer.cs
- HashCodeCombiner.cs
- TextMarkerSource.cs
- DataGridViewTextBoxColumn.cs
- ButtonChrome.cs
- EntityCommand.cs
- DocumentViewerBase.cs