Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Serialization / SoapAttributeOverrides.cs / 1305376 / 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
- DecoderBestFitFallback.cs
- ServiceEndpointCollection.cs
- AppSettingsReader.cs
- MethodBody.cs
- AppModelKnownContentFactory.cs
- UserPreferenceChangingEventArgs.cs
- GridViewDeleteEventArgs.cs
- AdornerPresentationContext.cs
- HitTestWithPointDrawingContextWalker.cs
- WebBrowsableAttribute.cs
- UdpChannelFactory.cs
- RemoteDebugger.cs
- BamlLocalizableResourceKey.cs
- TextRunProperties.cs
- SqlLiftIndependentRowExpressions.cs
- XmlReflectionImporter.cs
- AxDesigner.cs
- PositiveTimeSpanValidatorAttribute.cs
- UTF7Encoding.cs
- XmlSchemaRedefine.cs
- XmlUrlResolver.cs
- ContentType.cs
- RegexRunnerFactory.cs
- ChangeBlockUndoRecord.cs
- _NegotiateClient.cs
- DataErrorValidationRule.cs
- JournalEntryStack.cs
- FilterableAttribute.cs
- ObjectStorage.cs
- ObservableDictionary.cs
- StringArrayConverter.cs
- WebPartEditVerb.cs
- CodeDOMProvider.cs
- BitmapEditor.cs
- DoubleSumAggregationOperator.cs
- ListViewItem.cs
- ObjectTokenCategory.cs
- DoubleAnimationUsingKeyFrames.cs
- ClassHandlersStore.cs
- _StreamFramer.cs
- Converter.cs
- ScriptingScriptResourceHandlerSection.cs
- AssemblyHash.cs
- XmlHelper.cs
- ObjectNotFoundException.cs
- StickyNote.cs
- EventLogTraceListener.cs
- IndexedString.cs
- SizeAnimationClockResource.cs
- SinglePageViewer.cs
- MissingManifestResourceException.cs
- Shape.cs
- OrderablePartitioner.cs
- SqlConnectionPoolGroupProviderInfo.cs
- ProfileModule.cs
- HttpHandlerActionCollection.cs
- BaseCAMarshaler.cs
- SafeReadContext.cs
- DependentList.cs
- Directory.cs
- DataControlFieldTypeEditor.cs
- CallSiteHelpers.cs
- SmtpSection.cs
- FormViewInsertEventArgs.cs
- WindowsScrollBarBits.cs
- Part.cs
- _ConnectionGroup.cs
- CapabilitiesRule.cs
- WebPartRestoreVerb.cs
- AdornerDecorator.cs
- MethodAccessException.cs
- SchemaRegistration.cs
- GatewayIPAddressInformationCollection.cs
- XmlSchemaObjectCollection.cs
- SelectionRange.cs
- JsonSerializer.cs
- Button.cs
- ObjectCacheSettings.cs
- Label.cs
- FrameworkContentElementAutomationPeer.cs
- WsdlBuildProvider.cs
- DecimalAnimationUsingKeyFrames.cs
- PersonalizablePropertyEntry.cs
- WebUtil.cs
- DataGridViewCellCollection.cs
- SecurityException.cs
- ParameterReplacerVisitor.cs
- ImportCatalogPart.cs
- _ConnectStream.cs
- CharUnicodeInfo.cs
- PersonalizableTypeEntry.cs
- RawMouseInputReport.cs
- LogLogRecordHeader.cs
- DrawingDrawingContext.cs
- XmlSchemaSimpleTypeUnion.cs
- ProgressBarRenderer.cs
- XPathException.cs
- ReliabilityContractAttribute.cs
- ValidationUtility.cs
- FlagsAttribute.cs