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
- LinkedResource.cs
- ModifierKeysValueSerializer.cs
- SizeConverter.cs
- SqlConnectionFactory.cs
- DataContractSerializerSection.cs
- EntitySet.cs
- TakeOrSkipQueryOperator.cs
- InstanceCompleteException.cs
- MatrixValueSerializer.cs
- EntityDesignerUtils.cs
- CompositeFontInfo.cs
- OdbcStatementHandle.cs
- _DomainName.cs
- TextContainer.cs
- Range.cs
- CompositeCollection.cs
- HttpModulesSection.cs
- Figure.cs
- SamlAttribute.cs
- OnOperation.cs
- TileBrush.cs
- WindowsPrincipal.cs
- MinimizableAttributeTypeConverter.cs
- DesignerSerializationOptionsAttribute.cs
- StoreContentChangedEventArgs.cs
- ResXResourceWriter.cs
- VersionPair.cs
- DesignerCommandAdapter.cs
- CrossContextChannel.cs
- StorageTypeMapping.cs
- SpellerError.cs
- GridPatternIdentifiers.cs
- SqlTypeConverter.cs
- UpdateExpressionVisitor.cs
- FilterEventArgs.cs
- HtmlInputPassword.cs
- FormViewUpdatedEventArgs.cs
- DesignerOptionService.cs
- PersonalizableAttribute.cs
- CuspData.cs
- HttpProtocolReflector.cs
- ScrollChrome.cs
- PriorityQueue.cs
- Listbox.cs
- Color.cs
- MarkupProperty.cs
- AppliesToBehaviorDecisionTable.cs
- CompoundFileStreamReference.cs
- RequiredAttributeAttribute.cs
- NotCondition.cs
- Rijndael.cs
- GridViewSortEventArgs.cs
- RecommendedAsConfigurableAttribute.cs
- DigestTraceRecordHelper.cs
- DelegateTypeInfo.cs
- StylusShape.cs
- Authorization.cs
- Terminate.cs
- GlyphingCache.cs
- WorkflowHostingEndpoint.cs
- CacheSection.cs
- ToolStrip.cs
- Vector3DIndependentAnimationStorage.cs
- ApplicationServiceManager.cs
- BitmapEffectDrawingContextWalker.cs
- AppSettingsExpressionEditor.cs
- PipelineComponent.cs
- WorkflowCreationContext.cs
- AbandonedMutexException.cs
- ViewDesigner.cs
- ListManagerBindingsCollection.cs
- BamlCollectionHolder.cs
- TextTreeUndoUnit.cs
- InheritanceRules.cs
- FunctionDescription.cs
- SegmentTree.cs
- SiteMapDesignerDataSourceView.cs
- MachineKeySection.cs
- ScriptHandlerFactory.cs
- Rect.cs
- smtppermission.cs
- querybuilder.cs
- NodeFunctions.cs
- FrameworkObject.cs
- ICspAsymmetricAlgorithm.cs
- VideoDrawing.cs
- MetadataItemSerializer.cs
- RenderTargetBitmap.cs
- SqlDataSourceView.cs
- ErrorHandlerFaultInfo.cs
- OrderByLifter.cs
- ISCIIEncoding.cs
- Decimal.cs
- WebControlToolBoxItem.cs
- Rotation3D.cs
- ParameterDataSourceExpression.cs
- Variable.cs
- Utils.cs
- NetworkCredential.cs
- ConnectionManagementElementCollection.cs