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
- AnonymousIdentificationSection.cs
- XmlEntity.cs
- Emitter.cs
- BreakRecordTable.cs
- NTAccount.cs
- IsolatedStorageFileStream.cs
- ProfileGroupSettingsCollection.cs
- GridItemCollection.cs
- TrackingServices.cs
- HttpListenerPrefixCollection.cs
- QilPatternVisitor.cs
- GridViewColumnHeader.cs
- HostedHttpContext.cs
- ZipIOLocalFileDataDescriptor.cs
- HttpContext.cs
- MiniParameterInfo.cs
- PartialList.cs
- TraceHandler.cs
- WsatAdminException.cs
- BackEase.cs
- Dump.cs
- MenuTracker.cs
- XmlQueryType.cs
- HttpContextServiceHost.cs
- AsymmetricSignatureDeformatter.cs
- WCFServiceClientProxyGenerator.cs
- PathNode.cs
- BulletedListEventArgs.cs
- ElementNotEnabledException.cs
- MessageEncoderFactory.cs
- SupportingTokenBindingElement.cs
- DataGridViewLinkCell.cs
- StylusShape.cs
- MD5.cs
- Figure.cs
- WindowsPrincipal.cs
- PermissionListSet.cs
- OciLobLocator.cs
- RotationValidation.cs
- ParagraphResult.cs
- Command.cs
- XmlQueryOutput.cs
- CombinedHttpChannel.cs
- GregorianCalendarHelper.cs
- Quaternion.cs
- CellPartitioner.cs
- KnownBoxes.cs
- precedingsibling.cs
- MailWebEventProvider.cs
- Int32CAMarshaler.cs
- ConfigurationSection.cs
- RowUpdatingEventArgs.cs
- AssociationTypeEmitter.cs
- RemoteWebConfigurationHostStream.cs
- CrossContextChannel.cs
- HMACSHA256.cs
- HandlerBase.cs
- WindowsListViewGroup.cs
- XPathNode.cs
- ImageList.cs
- TreeViewTemplateSelector.cs
- IItemContainerGenerator.cs
- IDQuery.cs
- StyleXamlParser.cs
- MemoryStream.cs
- TextElementCollectionHelper.cs
- RectAnimation.cs
- ConstrainedDataObject.cs
- TypePresenter.xaml.cs
- ComNativeDescriptor.cs
- InkCanvasAutomationPeer.cs
- COM2PropertyBuilderUITypeEditor.cs
- RecordConverter.cs
- SerializationAttributes.cs
- SingleQueryOperator.cs
- RegisteredHiddenField.cs
- XmlSchemaExporter.cs
- LogicalExpressionEditor.cs
- CommonXSendMessage.cs
- TabRenderer.cs
- LinkUtilities.cs
- KeyValuePairs.cs
- ViewBox.cs
- DesignerOptionService.cs
- QueryAccessibilityHelpEvent.cs
- CompilationLock.cs
- HttpCookie.cs
- ConstraintCollection.cs
- PagesSection.cs
- GridItemCollection.cs
- XmlSerializer.cs
- XmlWrappingReader.cs
- NumberAction.cs
- Encoder.cs
- InternalBufferOverflowException.cs
- MouseWheelEventArgs.cs
- EncoderBestFitFallback.cs
- DebugView.cs
- WsiProfilesElementCollection.cs
- DataRecordInfo.cs