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
- IEnumerable.cs
- recordstate.cs
- DescendantOverDescendantQuery.cs
- OleServicesContext.cs
- RadioButton.cs
- ConnectionStringSettingsCollection.cs
- ObjectParameterCollection.cs
- _RequestCacheProtocol.cs
- SessionParameter.cs
- IfElseDesigner.xaml.cs
- XmlCustomFormatter.cs
- GenericPrincipal.cs
- PopupEventArgs.cs
- LabelLiteral.cs
- WsatServiceAddress.cs
- ServerProtocol.cs
- SecurityCriticalDataForSet.cs
- SoapFormatter.cs
- Attributes.cs
- SchemaImporterExtension.cs
- Int64Converter.cs
- ReversePositionQuery.cs
- EdmSchemaError.cs
- FixedHyperLink.cs
- QueryRewriter.cs
- InfoCardRSACryptoProvider.cs
- ErrorReporting.cs
- ArraySortHelper.cs
- XmlFormatWriterGenerator.cs
- SecurityPolicySection.cs
- TextTabProperties.cs
- EnumValAlphaComparer.cs
- ResourcePart.cs
- Automation.cs
- SqlDataSourceCustomCommandPanel.cs
- DesignerHelpers.cs
- FlowDocumentPaginator.cs
- NamespaceCollection.cs
- regiisutil.cs
- XsltFunctions.cs
- DateTimeFormatInfoScanner.cs
- TextCompositionManager.cs
- GetFileNameResult.cs
- ReferenceEqualityComparer.cs
- unsafeIndexingFilterStream.cs
- BasicHttpMessageSecurity.cs
- ScrollProperties.cs
- FocusChangedEventArgs.cs
- XPathNode.cs
- WebMethodAttribute.cs
- OrderByBuilder.cs
- NativeMethods.cs
- TraceFilter.cs
- WindowsFormsHostPropertyMap.cs
- TCPClient.cs
- _NetRes.cs
- HyperLinkColumn.cs
- StylusOverProperty.cs
- SchemaTypeEmitter.cs
- DataGridState.cs
- TypographyProperties.cs
- IgnoreDataMemberAttribute.cs
- LocatorPartList.cs
- DigitShape.cs
- Events.cs
- XPathDocument.cs
- StrictModeSecurityHeaderElementInferenceEngine.cs
- LogExtent.cs
- DataListItem.cs
- HttpContext.cs
- RecognizerInfo.cs
- Variant.cs
- NullPackagingPolicy.cs
- ConfigXmlSignificantWhitespace.cs
- Baml2006ReaderSettings.cs
- XmlNode.cs
- TreeNodeMouseHoverEvent.cs
- Animatable.cs
- X509CertificateTokenFactoryCredential.cs
- FormParameter.cs
- EntityKeyElement.cs
- Convert.cs
- Automation.cs
- FrameworkContextData.cs
- InputBinder.cs
- XsdDateTime.cs
- ConnectorSelectionGlyph.cs
- XmlILIndex.cs
- IRCollection.cs
- TextLineBreak.cs
- ConsoleKeyInfo.cs
- MarginsConverter.cs
- ViewPort3D.cs
- InternalTypeHelper.cs
- SynchronizedPool.cs
- CultureSpecificStringDictionary.cs
- FlowLayoutPanel.cs
- SpecularMaterial.cs
- FacetChecker.cs
- InvalidAsynchronousStateException.cs