Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / Tools / System.Activities.Presentation / System / Activities / Presentation / Xaml / XamlNamespaceHelper.cs / 1305376 / XamlNamespaceHelper.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.Activities.Presentation.Xaml { using System.Activities.Debugger; using System.Activities.Presentation.Model; using System.Collections.Generic; using System.ComponentModel; using System.Runtime; using System.Windows.Markup; internal class XamlNamespaceHelper { internal const string ClrNamespacePrefix = "clr-namespace:"; internal const string ClrNamespaceAssemblyField = ";assembly="; internal static bool TryParseClrNsUri(string xamlNamespace, out string clrNamespace, out string assembly) { clrNamespace = null; assembly = null; if (!xamlNamespace.StartsWith(ClrNamespacePrefix, StringComparison.Ordinal)) { return false; } int clrNsIndex = ClrNamespacePrefix.Length; int assemblyIndex = xamlNamespace.IndexOf(ClrNamespaceAssemblyField, StringComparison.Ordinal); if (assemblyIndex < clrNsIndex) { clrNamespace = xamlNamespace.Substring(clrNsIndex); return true; } clrNamespace = xamlNamespace.Substring(clrNsIndex, assemblyIndex - clrNsIndex); assemblyIndex += ClrNamespaceAssemblyField.Length; assembly = xamlNamespace.Substring(assemblyIndex); return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TaskHelper.cs
- MediaCommands.cs
- Encoder.cs
- MetadataHelper.cs
- XamlTypeMapperSchemaContext.cs
- PopupEventArgs.cs
- XPathNodePointer.cs
- NamespaceInfo.cs
- WebHttpSecurity.cs
- SafeTimerHandle.cs
- MailSettingsSection.cs
- RadioButton.cs
- MouseBinding.cs
- DataTableReaderListener.cs
- SchemaElementDecl.cs
- ChildTable.cs
- PartManifestEntry.cs
- ErrorWrapper.cs
- SizeLimitedCache.cs
- ParserStreamGeometryContext.cs
- PixelShader.cs
- ZipIOFileItemStream.cs
- SelectionPattern.cs
- DocumentAutomationPeer.cs
- GatewayDefinition.cs
- ResourcePermissionBaseEntry.cs
- Path.cs
- TableCell.cs
- EventDescriptorCollection.cs
- ObjectTokenCategory.cs
- MSHTMLHost.cs
- ObjectStateEntry.cs
- ProxyHwnd.cs
- TemplateKey.cs
- WebPartTracker.cs
- ToolStripDropDown.cs
- SingleAnimation.cs
- RankException.cs
- TreeWalkHelper.cs
- TextRunTypographyProperties.cs
- CustomSignedXml.cs
- PropertyChangedEventArgs.cs
- ReferencedCollectionType.cs
- NamespaceList.cs
- RuntimeResourceSet.cs
- WebPartsPersonalization.cs
- InvocationExpression.cs
- UserControl.cs
- WorkflowNamespace.cs
- ListControlConvertEventArgs.cs
- CodeFieldReferenceExpression.cs
- HttpCacheVary.cs
- BaseCodePageEncoding.cs
- ConfigXmlWhitespace.cs
- ListParaClient.cs
- DataGridCellClipboardEventArgs.cs
- HandlerFactoryWrapper.cs
- ObjectStateManager.cs
- ReflectionPermission.cs
- TextSchema.cs
- PageAsyncTaskManager.cs
- DesignerAutoFormatStyle.cs
- EntityDataSourceSelectedEventArgs.cs
- StatusInfoItem.cs
- StylusButtonEventArgs.cs
- TableLayoutPanelResizeGlyph.cs
- QuaternionAnimationBase.cs
- ToolStripItemDataObject.cs
- DynamicContractTypeBuilder.cs
- TabRenderer.cs
- Renderer.cs
- documentsequencetextpointer.cs
- XmlLoader.cs
- UnknownBitmapDecoder.cs
- EntityDataSourceMemberPath.cs
- DataServiceRequestArgs.cs
- RoleService.cs
- TextureBrush.cs
- ReadOnlyDataSourceView.cs
- TypeSystem.cs
- ProtocolsConfigurationHandler.cs
- PersistenceTypeAttribute.cs
- DbConnectionPoolGroupProviderInfo.cs
- SQLChars.cs
- ExtensionSimplifierMarkupObject.cs
- ValidationRule.cs
- dsa.cs
- UMPAttributes.cs
- Underline.cs
- Assembly.cs
- StringConcat.cs
- IPPacketInformation.cs
- ParallelEnumerable.cs
- ToolStripOverflow.cs
- ImageAutomationPeer.cs
- WorkflowMessageEventHandler.cs
- TrackBarDesigner.cs
- CheckBoxField.cs
- VectorCollectionValueSerializer.cs
- sqlser.cs