Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Print / Reach / Serialization / manager / ReachNamespaceInfo.cs / 1 / ReachNamespaceInfo.cs
/*++ Copyright (C) 2004- 2005 Microsoft Corporation All rights reserved. Module Name: ReachNamespaceInfo.cs Abstract: Contains the class definition of some classes that maintain the NameSpaces specific information. Author: [....] ([....]) 1-December-2004 Revision History: --*/ using System; using System.Collections; using System.Collections.Specialized; using System.ComponentModel; using System.Diagnostics; using System.Reflection; using System.Xml; using System.IO; using System.Security; using System.Security.Permissions; using System.ComponentModel.Design.Serialization; using System.Windows.Xps.Packaging; using System.Windows.Documents; using System.Windows.Media; using System.Windows.Markup; namespace System.Windows.Xps.Serialization { internal class SerializableObjectNamespaceInfo { #region Constructor internal SerializableObjectNamespaceInfo( Type type, string prefix, string xmlNamespace ) : this(type.Namespace, prefix, xmlNamespace) { } internal SerializableObjectNamespaceInfo( string clrNamespace, string prefix, string xmlNamespace ) { this._xmlNamespace = xmlNamespace; this._clrNamespace = clrNamespace; this._prefix = prefix; } #endregion Constructor #region Internal Properties internal string Prefix { get { return _prefix; } } internal string XmlNamespace { get { return _xmlNamespace; } } internal string ClrNamespace { get { return _clrNamespace; } } #endregion Internal Properties #region Private Data private readonly string _prefix; private readonly string _xmlNamespace; private readonly string _clrNamespace; #endregion Private Data }; internal class MetroSerializationNamespaceTable { #region Constructor internal MetroSerializationNamespaceTable( MetroSerializationNamespaceTable parent ) { Initialize(parent); } #endregion Constructor #region Internal Properties internal SerializableObjectNamespaceInfo this[Type type] { get { return (SerializableObjectNamespaceInfo)_innerDictionary[type]; } set { _innerDictionary[type] = value; } } #endregion Internal Properties #region Internal Methods internal bool Contains( Type type ) { return _innerDictionary.Contains(type); } internal void Add( Type type, SerializableObjectNamespaceInfo namespaceInfo) { _innerDictionary.Add(type, namespaceInfo); } internal void Initialize( MetroSerializationNamespaceTable parent ) { _innerDictionary = new Hashtable(11); } #endregion Internal Methods #region Private Data private IDictionary _innerDictionary; #endregion Private Data }; } // 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
- ContractMapping.cs
- PropertyDescriptorCollection.cs
- AutomationElementIdentifiers.cs
- Nodes.cs
- ListView.cs
- BinarySerializer.cs
- TimeoutValidationAttribute.cs
- SessionStateSection.cs
- WebBrowserNavigatingEventHandler.cs
- KeyTimeConverter.cs
- EdgeModeValidation.cs
- ZipFileInfoCollection.cs
- SingleStorage.cs
- ValidationResult.cs
- RtfToXamlReader.cs
- TextFormatterHost.cs
- CodeArrayCreateExpression.cs
- PointCollection.cs
- ModelTreeEnumerator.cs
- PageRanges.cs
- ApplicationTrust.cs
- ProcessModelSection.cs
- PixelShader.cs
- DoubleStorage.cs
- ProvidersHelper.cs
- TransformCollection.cs
- TextParagraphProperties.cs
- ActivityExecutionFilter.cs
- ApplicationFileCodeDomTreeGenerator.cs
- TextEditorLists.cs
- CharAnimationBase.cs
- TemplatePropertyEntry.cs
- MappingException.cs
- SecureStringHasher.cs
- DataStreams.cs
- ForwardPositionQuery.cs
- SettingsPropertyNotFoundException.cs
- CultureInfo.cs
- DataServiceRequestException.cs
- XmlChildNodes.cs
- IPeerNeighbor.cs
- InternalConfigEventArgs.cs
- RelatedCurrencyManager.cs
- InstanceKey.cs
- TemplateEditingService.cs
- NamespaceQuery.cs
- CompositeFontParser.cs
- ProtocolElement.cs
- TypeConverterMarkupExtension.cs
- XmlElementList.cs
- UriScheme.cs
- HandlerFactoryCache.cs
- GridView.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- Encoder.cs
- SessionKeyExpiredException.cs
- DataGridViewControlCollection.cs
- ExpandSegmentCollection.cs
- TextDecorationCollection.cs
- TheQuery.cs
- XmlWrappingWriter.cs
- DocumentGrid.cs
- PropertyMappingExceptionEventArgs.cs
- DictionaryEntry.cs
- VoiceInfo.cs
- ACE.cs
- ExecutedRoutedEventArgs.cs
- BooleanExpr.cs
- AsyncOperation.cs
- PageParserFilter.cs
- Rijndael.cs
- WindowsListBox.cs
- DecoderFallback.cs
- MissingManifestResourceException.cs
- ImageBrush.cs
- Rotation3D.cs
- QilFunction.cs
- HyperLinkColumn.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- ArithmeticException.cs
- ProfileEventArgs.cs
- ObfuscationAttribute.cs
- XdrBuilder.cs
- OutputCacheModule.cs
- CacheChildrenQuery.cs
- DispatcherFrame.cs
- DoubleAnimationClockResource.cs
- EventMap.cs
- ParentUndoUnit.cs
- RequestDescription.cs
- IteratorAsyncResult.cs
- BitStream.cs
- ServiceMetadataContractBehavior.cs
- MouseGestureValueSerializer.cs
- JsonGlobals.cs
- AnimationTimeline.cs
- WSHttpBindingElement.cs
- UrlAuthFailedErrorFormatter.cs
- BasicExpandProvider.cs
- DataGridTablesFactory.cs