Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- SystemResourceHost.cs
- ConfigPathUtility.cs
- VectorAnimationUsingKeyFrames.cs
- NonBatchDirectoryCompiler.cs
- TraceContextEventArgs.cs
- LinkUtilities.cs
- SqlUtils.cs
- DtdParser.cs
- RequestedSignatureDialog.cs
- MatchingStyle.cs
- EventData.cs
- PrtCap_Public.cs
- OracleParameterCollection.cs
- Trace.cs
- TextBoxAutomationPeer.cs
- JsonReaderDelegator.cs
- WinEventWrap.cs
- ConfigUtil.cs
- DictionaryBase.cs
- OrthographicCamera.cs
- hebrewshape.cs
- HuffmanTree.cs
- ExecutionContext.cs
- DistinctQueryOperator.cs
- LoginName.cs
- XPathExpr.cs
- PreservationFileWriter.cs
- CategoryNameCollection.cs
- CreateParams.cs
- TextDecorationUnitValidation.cs
- ValueOfAction.cs
- HttpProxyTransportBindingElement.cs
- Literal.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- NumberFunctions.cs
- SchemaCollectionCompiler.cs
- unsafeIndexingFilterStream.cs
- StandardCommands.cs
- Char.cs
- DbReferenceCollection.cs
- LocalBuilder.cs
- SendActivity.cs
- ObjectDataSourceStatusEventArgs.cs
- CompareValidator.cs
- ExtendLockCommand.cs
- ComponentResourceKey.cs
- ToolStripContainerDesigner.cs
- ValueTable.cs
- XmlEnumAttribute.cs
- BitmapMetadata.cs
- MetabaseServerConfig.cs
- HttpClientCertificate.cs
- MemoryFailPoint.cs
- TabControlCancelEvent.cs
- StringAnimationUsingKeyFrames.cs
- SafeNativeMethodsOther.cs
- UriSection.cs
- ItemType.cs
- EventLog.cs
- SoapAttributeOverrides.cs
- ProcessHostConfigUtils.cs
- COSERVERINFO.cs
- VectorCollectionValueSerializer.cs
- COM2PropertyDescriptor.cs
- ResourcePart.cs
- ToolStripEditorManager.cs
- BinHexEncoding.cs
- RadioButtonDesigner.cs
- WindowsIdentity.cs
- CachedBitmap.cs
- ParseElement.cs
- SingleSelectRootGridEntry.cs
- EndpointAddressElementBase.cs
- TrustManagerPromptUI.cs
- UnicastIPAddressInformationCollection.cs
- CountAggregationOperator.cs
- StringUtil.cs
- CfgSemanticTag.cs
- TableCellCollection.cs
- ConfigurationLockCollection.cs
- XmlAttributeCollection.cs
- ImageButton.cs
- DiagnosticsConfigurationHandler.cs
- StringValidator.cs
- LinqDataSourceDeleteEventArgs.cs
- CheckBox.cs
- TagMapCollection.cs
- IncrementalHitTester.cs
- OdbcDataAdapter.cs
- ExplicitDiscriminatorMap.cs
- PaintEvent.cs
- Content.cs
- SortAction.cs
- DataViewSettingCollection.cs
- DrawListViewItemEventArgs.cs
- VisualStateGroup.cs
- ListenerSessionConnection.cs
- DebugTracing.cs
- LambdaCompiler.Binary.cs
- ToolBarDesigner.cs