Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Xml / System / Xml / Serialization / SoapAttributeOverrides.cs / 1 / SoapAttributeOverrides.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 SoapAttributeOverrides { Hashtable types = new Hashtable(); ///[To be supplied.] ////// /// public void Add(Type type, SoapAttributes attributes) { Add(type, string.Empty, attributes); } ///[To be supplied.] ////// /// public void Add(Type type, string member, SoapAttributes 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.XmlMultipleAttributeOverrides, type.FullName, member)); } members.Add(member, attributes); } ///[To be supplied.] ////// /// public SoapAttributes this[Type type] { get { return this[type, string.Empty]; } } ///[To be supplied.] ////// /// public SoapAttributes this[Type type, string member] { get { Hashtable members = (Hashtable)types[type]; if (members == null) return null; return (SoapAttributes)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 SoapAttributeOverrides { Hashtable types = new Hashtable(); ///[To be supplied.] ////// /// public void Add(Type type, SoapAttributes attributes) { Add(type, string.Empty, attributes); } ///[To be supplied.] ////// /// public void Add(Type type, string member, SoapAttributes 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.XmlMultipleAttributeOverrides, type.FullName, member)); } members.Add(member, attributes); } ///[To be supplied.] ////// /// public SoapAttributes this[Type type] { get { return this[type, string.Empty]; } } ///[To be supplied.] ////// /// public SoapAttributes this[Type type, string member] { get { Hashtable members = (Hashtable)types[type]; if (members == null) return null; return (SoapAttributes)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
- ConfigurationProviderException.cs
- CalendarDataBindingHandler.cs
- VisualProxy.cs
- DataGridCommandEventArgs.cs
- PathSegmentCollection.cs
- SqlBulkCopyColumnMapping.cs
- VerificationAttribute.cs
- NetworkAddressChange.cs
- PaginationProgressEventArgs.cs
- ClientRolePrincipal.cs
- OdbcEnvironment.cs
- UInt64Converter.cs
- ISAPIApplicationHost.cs
- DefaultSection.cs
- EmissiveMaterial.cs
- ExeContext.cs
- RepeatInfo.cs
- rsa.cs
- wmiprovider.cs
- altserialization.cs
- HtmlShim.cs
- panel.cs
- FormViewUpdatedEventArgs.cs
- TableRowCollection.cs
- StyleTypedPropertyAttribute.cs
- KeyToListMap.cs
- GeneralTransform3DTo2D.cs
- OletxEnlistment.cs
- DefaultAsyncDataDispatcher.cs
- DesignTimeVisibleAttribute.cs
- DataGridGeneralPage.cs
- XmlCodeExporter.cs
- TypeForwardedToAttribute.cs
- DateRangeEvent.cs
- DataControlFieldHeaderCell.cs
- SimpleFileLog.cs
- PageThemeBuildProvider.cs
- PermissionListSet.cs
- __ConsoleStream.cs
- NetTcpSectionData.cs
- ContentElementAutomationPeer.cs
- XmlILOptimizerVisitor.cs
- InvariantComparer.cs
- RangeExpression.cs
- EncoderExceptionFallback.cs
- TableCell.cs
- DispatchWrapper.cs
- oledbconnectionstring.cs
- BindingsSection.cs
- EntityDataSourceColumn.cs
- RegexInterpreter.cs
- HttpCacheVary.cs
- ServiceDeploymentInfo.cs
- Scene3D.cs
- EdmPropertyAttribute.cs
- ThaiBuddhistCalendar.cs
- X500Name.cs
- HwndSubclass.cs
- GifBitmapDecoder.cs
- MyContact.cs
- DataChangedEventManager.cs
- Site.cs
- ExpressionParser.cs
- ImmutableObjectAttribute.cs
- AccessibleObject.cs
- HtmlInputPassword.cs
- SchemaMapping.cs
- LongValidatorAttribute.cs
- XmlSubtreeReader.cs
- XmlRawWriterWrapper.cs
- Translator.cs
- WebRequestModuleElementCollection.cs
- DiscreteKeyFrames.cs
- BoundPropertyEntry.cs
- PngBitmapDecoder.cs
- ModulesEntry.cs
- PreviewPageInfo.cs
- TextHidden.cs
- DateTimeConverter.cs
- BufferedReadStream.cs
- ManagementClass.cs
- TypeListConverter.cs
- EntityDataSourceContainerNameConverter.cs
- InkCollectionBehavior.cs
- KeyGesture.cs
- FixedFindEngine.cs
- DbSetClause.cs
- CharConverter.cs
- KerberosRequestorSecurityTokenAuthenticator.cs
- WebBrowserBase.cs
- IpcClientChannel.cs
- EntityDataSourceDesigner.cs
- Drawing.cs
- BufferedStream2.cs
- AuthenticationModulesSection.cs
- ReachDocumentReferenceSerializerAsync.cs
- CapabilitiesPattern.cs
- MatrixKeyFrameCollection.cs
- EllipseGeometry.cs
- DocumentCollection.cs