Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Serialization / XmlAttributeOverrides.cs / 1305376 / 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
- DispatchChannelSink.cs
- EventProxy.cs
- UserControlCodeDomTreeGenerator.cs
- XmlUtilWriter.cs
- PhysicalAddress.cs
- DateTime.cs
- RestClientProxyHandler.cs
- ProfileSettingsCollection.cs
- SqlBooleanizer.cs
- ObfuscationAttribute.cs
- DataProviderNameConverter.cs
- SqlIdentifier.cs
- MobileControl.cs
- FloaterBaseParagraph.cs
- ToolStripRenderer.cs
- KeyedHashAlgorithm.cs
- PublisherMembershipCondition.cs
- AnnotationService.cs
- CommandBindingCollection.cs
- EntityDataSourceViewSchema.cs
- EUCJPEncoding.cs
- PopupRootAutomationPeer.cs
- PerformanceCounter.cs
- GridEntryCollection.cs
- MethodAccessException.cs
- SingleAnimation.cs
- EmptyStringExpandableObjectConverter.cs
- Matrix3DStack.cs
- DoubleAnimation.cs
- DateTimeFormatInfoScanner.cs
- UserControlCodeDomTreeGenerator.cs
- ObjectListTitleAttribute.cs
- ConnectionStringsExpressionBuilder.cs
- Setter.cs
- StatusBarDrawItemEvent.cs
- DataConnectionHelper.cs
- TreeViewAutomationPeer.cs
- ListenerElementsCollection.cs
- RoleService.cs
- x509utils.cs
- WpfWebRequestHelper.cs
- CqlLexerHelpers.cs
- DebuggerService.cs
- DataBoundControl.cs
- SerializationFieldInfo.cs
- Thumb.cs
- UnhandledExceptionEventArgs.cs
- X509Utils.cs
- HighlightVisual.cs
- OdbcCommandBuilder.cs
- ObjectDisposedException.cs
- XPathAncestorQuery.cs
- VectorCollection.cs
- OleDbInfoMessageEvent.cs
- EmbeddedObject.cs
- CompressedStack.cs
- CompensationToken.cs
- EntityDataSourceWrapperCollection.cs
- CompressEmulationStream.cs
- IndexerNameAttribute.cs
- SimpleWorkerRequest.cs
- InputManager.cs
- NumberFunctions.cs
- ButtonFieldBase.cs
- HttpValueCollection.cs
- DescendentsWalker.cs
- HttpApplicationFactory.cs
- XmlSchemaAttributeGroupRef.cs
- DataBindEngine.cs
- SynchronizationContext.cs
- AppModelKnownContentFactory.cs
- documentsequencetextview.cs
- SqlVisitor.cs
- GreaterThan.cs
- HttpApplication.cs
- Debugger.cs
- Visitors.cs
- PropertyRef.cs
- LocationSectionRecord.cs
- EarlyBoundInfo.cs
- ToolStripRenderer.cs
- AlternateViewCollection.cs
- TagMapCollection.cs
- FlowchartStart.xaml.cs
- VisualTarget.cs
- StorageEntityTypeMapping.cs
- WorkItem.cs
- WsatConfiguration.cs
- TextServicesPropertyRanges.cs
- AutomationEvent.cs
- DbConnectionOptions.cs
- TabControlCancelEvent.cs
- DataGridViewButtonColumn.cs
- PreservationFileReader.cs
- EventBookmark.cs
- PageRanges.cs
- RIPEMD160Managed.cs
- PackWebRequestFactory.cs
- NameValueCollection.cs
- DiagnosticsConfigurationHandler.cs