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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Utility.cs
- JobPageOrder.cs
- Int64Storage.cs
- TreeView.cs
- BinaryFormatterWriter.cs
- SubstitutionList.cs
- PublisherIdentityPermission.cs
- TextServicesCompartmentContext.cs
- AutomationProperties.cs
- DataGridCaption.cs
- ProcessModuleCollection.cs
- XPathNodeIterator.cs
- Content.cs
- Polyline.cs
- BrowserTree.cs
- XmlWriter.cs
- DataControlField.cs
- ISessionStateStore.cs
- AutoGeneratedField.cs
- AbstractDataSvcMapFileLoader.cs
- EntityDataSourceContainerNameItem.cs
- RankException.cs
- DbCommandDefinition.cs
- TextProperties.cs
- COM2PropertyBuilderUITypeEditor.cs
- ProjectionQueryOptionExpression.cs
- DefaultTextStore.cs
- DateTimeFormatInfo.cs
- DesignTimeTemplateParser.cs
- ISSmlParser.cs
- DomNameTable.cs
- TabControlAutomationPeer.cs
- WindowsImpersonationContext.cs
- SystemUnicastIPAddressInformation.cs
- SQLMoneyStorage.cs
- ScaleTransform3D.cs
- HelpProvider.cs
- DrawingImage.cs
- DesignSurfaceCollection.cs
- PkcsUtils.cs
- MultiPageTextView.cs
- RegisteredArrayDeclaration.cs
- HttpRuntimeSection.cs
- HtmlInputSubmit.cs
- RuntimeConfig.cs
- OracleInfoMessageEventArgs.cs
- WindowsTokenRoleProvider.cs
- MTConfigUtil.cs
- AttributeTable.cs
- WaitHandleCannotBeOpenedException.cs
- StandardTransformFactory.cs
- CodeRegionDirective.cs
- ChannelTokenTypeConverter.cs
- StyleCollection.cs
- CheckBoxList.cs
- Membership.cs
- HostedTransportConfigurationBase.cs
- GZipDecoder.cs
- CssClassPropertyAttribute.cs
- RIPEMD160.cs
- BindingNavigator.cs
- ResXBuildProvider.cs
- SoapCodeExporter.cs
- NetTcpSecurity.cs
- StateManagedCollection.cs
- WmlPageAdapter.cs
- TextSpanModifier.cs
- BooleanKeyFrameCollection.cs
- AssemblyResourceLoader.cs
- ByteStreamGeometryContext.cs
- X500Name.cs
- ZoneIdentityPermission.cs
- SourceElementsCollection.cs
- ExcCanonicalXml.cs
- XmlMtomWriter.cs
- RowsCopiedEventArgs.cs
- ReadOnlyAttribute.cs
- CTreeGenerator.cs
- CharacterBuffer.cs
- SqlClientWrapperSmiStreamChars.cs
- DesignTimeTemplateParser.cs
- SR.cs
- DataGridViewCheckBoxColumn.cs
- Util.cs
- TitleStyle.cs
- Composition.cs
- StringUtil.cs
- GeometryGroup.cs
- GroupQuery.cs
- SqlEnums.cs
- XmlChildNodes.cs
- CellConstantDomain.cs
- UrlPath.cs
- InvalidCastException.cs
- ComplexTypeEmitter.cs
- ResourceDescriptionAttribute.cs
- MimeObjectFactory.cs
- OracleFactory.cs
- ZoneButton.cs
- SymmetricKey.cs