Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Xml / System / Xml / Serialization / XmlAttributeOverrides.cs / 1 / XmlAttributeOverrides.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Serialization { using System.Reflection; using System.Collections; using System.IO; using System.Xml.Schema; using System; using System.ComponentModel; ////// /// public class XmlAttributeOverrides { Hashtable types = new Hashtable(); ///[To be supplied.] ////// /// public void Add(Type type, XmlAttributes attributes) { Add(type, string.Empty, attributes); } ///[To be supplied.] ////// /// public void Add(Type type, string member, XmlAttributes attributes) { Hashtable members = (Hashtable)types[type]; if (members == null) { members = new Hashtable(); types.Add(type, members); } else if (members[member] != null) { throw new InvalidOperationException(Res.GetString(Res.XmlAttributeSetAgain, type.FullName, member)); } members.Add(member, attributes); } ///[To be supplied.] ////// /// public XmlAttributes this[Type type] { get { return this[type, string.Empty]; } } ///[To be supplied.] ////// /// public XmlAttributes this[Type type, string member] { get { Hashtable members = (Hashtable)types[type]; if (members == null) return null; return (XmlAttributes)members[member]; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //[To be supplied.] ///// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Serialization { using System.Reflection; using System.Collections; using System.IO; using System.Xml.Schema; using System; using System.ComponentModel; ////// /// public class XmlAttributeOverrides { Hashtable types = new Hashtable(); ///[To be supplied.] ////// /// public void Add(Type type, XmlAttributes attributes) { Add(type, string.Empty, attributes); } ///[To be supplied.] ////// /// public void Add(Type type, string member, XmlAttributes attributes) { Hashtable members = (Hashtable)types[type]; if (members == null) { members = new Hashtable(); types.Add(type, members); } else if (members[member] != null) { throw new InvalidOperationException(Res.GetString(Res.XmlAttributeSetAgain, type.FullName, member)); } members.Add(member, attributes); } ///[To be supplied.] ////// /// public XmlAttributes this[Type type] { get { return this[type, string.Empty]; } } ///[To be supplied.] ////// /// public XmlAttributes this[Type type, string member] { get { Hashtable members = (Hashtable)types[type]; if (members == null) return null; return (XmlAttributes)members[member]; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ApplicationInfo.cs
- CredentialCache.cs
- VirtualPathProvider.cs
- SharedUtils.cs
- ComponentResourceManager.cs
- ByteFacetDescriptionElement.cs
- NullRuntimeConfig.cs
- _DomainName.cs
- RelationHandler.cs
- CounterSample.cs
- FontFamilyValueSerializer.cs
- TaskbarItemInfo.cs
- SupportingTokenProviderSpecification.cs
- ContainerParaClient.cs
- XmlAttributes.cs
- Dynamic.cs
- DataDocumentXPathNavigator.cs
- CredentialCache.cs
- XmlSchema.cs
- Guid.cs
- XPathDescendantIterator.cs
- ThreadAbortException.cs
- X509CertificateChain.cs
- Win32PrintDialog.cs
- SqlPersonalizationProvider.cs
- CookieProtection.cs
- DesignTable.cs
- MessageDesigner.cs
- FormsAuthenticationModule.cs
- ScrollBar.cs
- PropertyValueChangedEvent.cs
- RegexCompiler.cs
- CounterSample.cs
- DefaultTraceListener.cs
- DataGridViewRowPrePaintEventArgs.cs
- EngineSiteSapi.cs
- LinkLabel.cs
- BooleanConverter.cs
- StorageEndPropertyMapping.cs
- Win32PrintDialog.cs
- XmlCDATASection.cs
- ConstraintEnumerator.cs
- CodeCommentStatementCollection.cs
- _BaseOverlappedAsyncResult.cs
- SchemaName.cs
- XmlSchemaSimpleTypeList.cs
- ResourceDictionary.cs
- XmlSerializationReader.cs
- BaseCodeDomTreeGenerator.cs
- SequenceNumber.cs
- MouseGestureConverter.cs
- SqlWorkflowInstanceStoreLock.cs
- MatrixValueSerializer.cs
- ResourceAssociationSet.cs
- CodeExpressionStatement.cs
- NonClientArea.cs
- SqlReferenceCollection.cs
- StdValidatorsAndConverters.cs
- WebPart.cs
- XmlElementList.cs
- TypeElement.cs
- RangeBase.cs
- BinHexEncoder.cs
- ProcessHostConfigUtils.cs
- HttpAsyncResult.cs
- ApplicationSecurityManager.cs
- Models.cs
- ListViewItemEventArgs.cs
- ApplicationSecurityManager.cs
- safesecurityhelperavalon.cs
- recordstatescratchpad.cs
- LookupNode.cs
- ECDsa.cs
- BooleanToVisibilityConverter.cs
- BasicDesignerLoader.cs
- MessageSecurityVersion.cs
- ValidatedControlConverter.cs
- SqlTypeSystemProvider.cs
- WMIInterop.cs
- XmlQueryType.cs
- PartitionedStream.cs
- SafeSecurityHelper.cs
- ConsumerConnectionPoint.cs
- SafeProcessHandle.cs
- Interlocked.cs
- Attributes.cs
- XPathArrayIterator.cs
- FixedNode.cs
- AssemblyNameUtility.cs
- InvariantComparer.cs
- LogLogRecordEnumerator.cs
- OuterGlowBitmapEffect.cs
- DecoderExceptionFallback.cs
- OperandQuery.cs
- updatecommandorderer.cs
- Int32CAMarshaler.cs
- XmlException.cs
- QuadraticBezierSegment.cs
- TextEncodedRawTextWriter.cs
- IsolatedStorage.cs