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
- ControlBuilderAttribute.cs
- EngineSite.cs
- ColumnBinding.cs
- WhitespaceRule.cs
- PathSegment.cs
- ClientScriptManagerWrapper.cs
- XmlSigningNodeWriter.cs
- ServiceSecurityAuditBehavior.cs
- SafeLocalMemHandle.cs
- __ComObject.cs
- LoginAutoFormat.cs
- HtmlTable.cs
- RegexRunnerFactory.cs
- XmlBinaryReader.cs
- DocumentViewerBaseAutomationPeer.cs
- ProtocolsSection.cs
- Message.cs
- _OverlappedAsyncResult.cs
- Lease.cs
- WebContentFormatHelper.cs
- TypeDescriptorContext.cs
- XPathScanner.cs
- EarlyBoundInfo.cs
- DoubleLinkListEnumerator.cs
- GPStream.cs
- DrawListViewColumnHeaderEventArgs.cs
- GenericAuthenticationEventArgs.cs
- RootBuilder.cs
- Token.cs
- HttpResponseHeader.cs
- RepeatBehaviorConverter.cs
- CodePageUtils.cs
- SaveFileDialog.cs
- FindCriteriaApril2005.cs
- DateTimePicker.cs
- ConfigViewGenerator.cs
- LinqDataSourceStatusEventArgs.cs
- DataGridViewLinkColumn.cs
- cookiecontainer.cs
- PrtCap_Public_Simple.cs
- TabletCollection.cs
- InputScope.cs
- ClientProxyGenerator.cs
- SafeNativeMethodsMilCoreApi.cs
- StaticExtension.cs
- BulletedListDesigner.cs
- MediaCommands.cs
- MetaType.cs
- Cursors.cs
- HtmlControl.cs
- DNS.cs
- ZoneIdentityPermission.cs
- VSWCFServiceContractGenerator.cs
- FeatureSupport.cs
- PeerNameRecordCollection.cs
- _SslStream.cs
- DataBindingCollection.cs
- NavigateEvent.cs
- oledbmetadatacolumnnames.cs
- CryptoKeySecurity.cs
- MouseActionConverter.cs
- ListViewCommandEventArgs.cs
- RowUpdatedEventArgs.cs
- BindingExpression.cs
- XmlElementCollection.cs
- Visual3D.cs
- RijndaelManagedTransform.cs
- shaperfactoryquerycacheentry.cs
- ListBox.cs
- XmlAttributeCollection.cs
- ImageUrlEditor.cs
- ChildrenQuery.cs
- EraserBehavior.cs
- PointF.cs
- ISAPIApplicationHost.cs
- XmlWellformedWriter.cs
- ResXResourceWriter.cs
- BlurBitmapEffect.cs
- RelationshipEndCollection.cs
- HttpCacheVaryByContentEncodings.cs
- PrivateFontCollection.cs
- TransactionCache.cs
- ExpressionBuilderCollection.cs
- Message.cs
- ScrollableControl.cs
- JavaScriptString.cs
- PageBuildProvider.cs
- GuidelineSet.cs
- AppSettingsExpressionBuilder.cs
- CodeDefaultValueExpression.cs
- RemoteEndpointMessageProperty.cs
- JumpItem.cs
- IndexerNameAttribute.cs
- ContentOperations.cs
- ContextMenu.cs
- ColumnMapVisitor.cs
- BinaryReader.cs
- DataGridCaption.cs
- SiteMapPath.cs
- CodeDomConfigurationHandler.cs