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
- TypedDatasetGenerator.cs
- PreviewPrintController.cs
- InputMethodStateTypeInfo.cs
- TranslateTransform.cs
- TagPrefixAttribute.cs
- MatrixCamera.cs
- MinMaxParagraphWidth.cs
- MachineKeyConverter.cs
- SearchForVirtualItemEventArgs.cs
- ProfileManager.cs
- PingReply.cs
- SizeKeyFrameCollection.cs
- XamlSerializerUtil.cs
- SystemThemeKey.cs
- WebControlParameterProxy.cs
- DataGridViewUtilities.cs
- LoginView.cs
- SafeProcessHandle.cs
- ObjectAnimationBase.cs
- DetailsViewDeletedEventArgs.cs
- QueryInterceptorAttribute.cs
- Annotation.cs
- DataGridViewLinkCell.cs
- ScriptingRoleServiceSection.cs
- DataGridViewRowConverter.cs
- SiteMapPath.cs
- ReadOnlyAttribute.cs
- ExpandSegment.cs
- PictureBox.cs
- SqlDataAdapter.cs
- TextEndOfLine.cs
- DispatchChannelSink.cs
- CheckBoxList.cs
- CaseInsensitiveComparer.cs
- XmlUtil.cs
- SqlDataSourceView.cs
- DragEventArgs.cs
- Pts.cs
- BooleanFunctions.cs
- GridViewRowEventArgs.cs
- CipherData.cs
- ReversePositionQuery.cs
- NavigatorOutput.cs
- SafeWaitHandle.cs
- Rect3DValueSerializer.cs
- CompilerTypeWithParams.cs
- UpdateException.cs
- FormViewDeletedEventArgs.cs
- StoreItemCollection.Loader.cs
- GPStream.cs
- CopyOnWriteList.cs
- ApplyImportsAction.cs
- VariableQuery.cs
- ScrollProperties.cs
- ListDictionary.cs
- TypeEnumerableViewSchema.cs
- CheckedListBox.cs
- ForceCopyBuildProvider.cs
- RequestTimeoutManager.cs
- RepeatInfo.cs
- SystemIPAddressInformation.cs
- TreeNodeStyle.cs
- SqlHelper.cs
- DrawItemEvent.cs
- SHA1Cng.cs
- TabOrder.cs
- CatalogPartDesigner.cs
- ListItemParagraph.cs
- HierarchicalDataSourceControl.cs
- HtmlGenericControl.cs
- SqlStream.cs
- SqlProcedureAttribute.cs
- DbModificationCommandTree.cs
- AlphaSortedEnumConverter.cs
- EdmEntityTypeAttribute.cs
- HitTestResult.cs
- RelationshipEndCollection.cs
- OdbcFactory.cs
- Missing.cs
- DrawingContext.cs
- TextEndOfLine.cs
- BrowserCapabilitiesFactory.cs
- OperatingSystem.cs
- SqlNodeTypeOperators.cs
- WSAddressing10ProblemHeaderQNameFault.cs
- WebPartEditorOkVerb.cs
- GraphicsState.cs
- XPathNodeInfoAtom.cs
- WebBrowsableAttribute.cs
- HuffModule.cs
- MsmqIntegrationMessageProperty.cs
- WindowsListViewGroupSubsetLink.cs
- RepeaterDataBoundAdapter.cs
- PassportAuthentication.cs
- TypeInfo.cs
- ValidateNames.cs
- DataGridViewComboBoxEditingControl.cs
- InvalidChannelBindingException.cs
- CurrencyManager.cs
- MimeParameter.cs