Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ApplicationInfo.cs
- ChannelServices.cs
- ContentPlaceHolder.cs
- DynamicEndpointElement.cs
- DecoderNLS.cs
- HandleCollector.cs
- StorageModelBuildProvider.cs
- ListViewItemSelectionChangedEvent.cs
- ObjectStorage.cs
- DataSet.cs
- SqlUDTStorage.cs
- EmissiveMaterial.cs
- CommonGetThemePartSize.cs
- HtmlSelect.cs
- RegisteredHiddenField.cs
- validationstate.cs
- SchemaReference.cs
- XpsFont.cs
- ThemeInfoAttribute.cs
- ToolStripItemCollection.cs
- SrgsRule.cs
- TextBoxRenderer.cs
- SiteMembershipCondition.cs
- WeakHashtable.cs
- WebPartEditVerb.cs
- SqlProfileProvider.cs
- DeploymentExceptionMapper.cs
- SmiSettersStream.cs
- ExtensionCollection.cs
- TrustSection.cs
- BreakRecordTable.cs
- GlyphElement.cs
- MimeTypeAttribute.cs
- ToolStripSeparator.cs
- NativeStructs.cs
- SchemaImporterExtension.cs
- NamespaceEmitter.cs
- CapabilitiesUse.cs
- CompareValidator.cs
- TreeViewHitTestInfo.cs
- SynchronizedDispatch.cs
- PageHandlerFactory.cs
- TableParagraph.cs
- ImageCodecInfo.cs
- ComplexBindingPropertiesAttribute.cs
- IndependentAnimationStorage.cs
- DecimalAnimation.cs
- WindowsComboBox.cs
- WpfKnownType.cs
- Debug.cs
- MultiAsyncResult.cs
- CompilationLock.cs
- SaveFileDialog.cs
- DataRelation.cs
- TextTreeText.cs
- FacetDescriptionElement.cs
- ImplicitInputBrush.cs
- HorizontalAlignConverter.cs
- ZipIOLocalFileDataDescriptor.cs
- SymmetricKeyWrap.cs
- Point3DConverter.cs
- HtmlSelectionListAdapter.cs
- EpmContentDeSerializerBase.cs
- CurrentChangingEventManager.cs
- EmbeddedMailObjectCollectionEditor.cs
- EntityObject.cs
- PassportIdentity.cs
- ScriptControlManager.cs
- GetWinFXPath.cs
- DesignerTransactionCloseEvent.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- MDIClient.cs
- streamingZipPartStream.cs
- SimpleBitVector32.cs
- FrameDimension.cs
- Rules.cs
- RemotingAttributes.cs
- DateTimeHelper.cs
- DataService.cs
- objectresult_tresulttype.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- SchemaImporterExtensionsSection.cs
- ValidationSettings.cs
- ExpandableObjectConverter.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- ServiceHostFactory.cs
- documentation.cs
- PortCache.cs
- LinqDataSourceUpdateEventArgs.cs
- ListControl.cs
- FamilyMap.cs
- GradientBrush.cs
- BindableTemplateBuilder.cs
- DrawingServices.cs
- WindowsRegion.cs
- VariableQuery.cs
- OdbcConnectionFactory.cs
- DispatchOperation.cs
- ObjectDataSourceSelectingEventArgs.cs
- XsdDateTime.cs