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
- FileUtil.cs
- ListenerServiceInstallComponent.cs
- ConfigurationManagerInternal.cs
- StandardCommands.cs
- StrokeNodeOperations2.cs
- EditingCoordinator.cs
- RevocationPoint.cs
- XmlSchemaDatatype.cs
- PersonalizablePropertyEntry.cs
- CompareValidator.cs
- Propagator.cs
- SessionStateUtil.cs
- Documentation.cs
- XmlNullResolver.cs
- Cell.cs
- SelectionEditingBehavior.cs
- XPathNavigatorKeyComparer.cs
- safesecurityhelperavalon.cs
- RuntimeIdentifierPropertyAttribute.cs
- DataGridViewRowHeaderCell.cs
- DataServiceQuery.cs
- EventToken.cs
- DbTypeMap.cs
- SchemaLookupTable.cs
- EmptyStringExpandableObjectConverter.cs
- SessionPageStateSection.cs
- DockingAttribute.cs
- RegexCode.cs
- WmlTextBoxAdapter.cs
- PersistenceException.cs
- ResourceProperty.cs
- StylusDownEventArgs.cs
- MissingManifestResourceException.cs
- DocumentPageViewAutomationPeer.cs
- errorpatternmatcher.cs
- Gdiplus.cs
- ClientSettingsStore.cs
- AnnotationHighlightLayer.cs
- LexicalChunk.cs
- PreProcessInputEventArgs.cs
- LOSFormatter.cs
- InkCanvasSelectionAdorner.cs
- SortKey.cs
- DiscoveryService.cs
- DataSourceProvider.cs
- CellCreator.cs
- Polyline.cs
- PtsHost.cs
- RowCache.cs
- XmlNamespaceManager.cs
- XmlSchemaAttributeGroupRef.cs
- GridViewRowPresenterBase.cs
- WindowsToolbarItemAsMenuItem.cs
- RangeValuePattern.cs
- SortFieldComparer.cs
- TransportSecurityBindingElement.cs
- StackOverflowException.cs
- SvcMapFile.cs
- safelink.cs
- WaitHandle.cs
- CurrencyWrapper.cs
- SequentialUshortCollection.cs
- QueueTransferProtocol.cs
- ImageInfo.cs
- DesignerOptionService.cs
- IndicCharClassifier.cs
- SHA256Managed.cs
- OleDbPropertySetGuid.cs
- InvokePattern.cs
- Token.cs
- ExecutionContext.cs
- AppDomainGrammarProxy.cs
- ListViewItem.cs
- _SSPIWrapper.cs
- RijndaelManaged.cs
- DesignerVerb.cs
- ExpressionPrinter.cs
- OnOperation.cs
- CompilerScopeManager.cs
- ISessionStateStore.cs
- SimplePropertyEntry.cs
- MaterialGroup.cs
- AppSettingsExpressionEditor.cs
- PenLineJoinValidation.cs
- ProtocolsSection.cs
- ServiceDiscoveryElement.cs
- DataSourceConverter.cs
- DictionaryGlobals.cs
- AssertSection.cs
- Control.cs
- LayoutEvent.cs
- CheckableControlBaseAdapter.cs
- RuntimeWrappedException.cs
- DataViewManager.cs
- OdbcTransaction.cs
- HtmlTableRow.cs
- PropertyGridEditorPart.cs
- regiisutil.cs
- AppSettingsExpressionBuilder.cs
- RadioButtonStandardAdapter.cs