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
- ReverseQueryOperator.cs
- DocumentGridContextMenu.cs
- TraceSwitch.cs
- _AutoWebProxyScriptWrapper.cs
- LocatorGroup.cs
- RelationshipNavigation.cs
- CharacterBuffer.cs
- WebServiceEnumData.cs
- Span.cs
- ResolveCriteriaApril2005.cs
- PixelFormatConverter.cs
- XmlCharCheckingWriter.cs
- NextPreviousPagerField.cs
- ProxyGenerator.cs
- RightNameExpirationInfoPair.cs
- DataServiceContext.cs
- CookieParameter.cs
- DbConnectionInternal.cs
- DecoratedNameAttribute.cs
- ConfigXmlAttribute.cs
- ObjectDataSourceStatusEventArgs.cs
- OptimisticConcurrencyException.cs
- BamlLocalizer.cs
- ComponentResourceKey.cs
- ServiceModelEnhancedConfigurationElementCollection.cs
- DataGridViewCellValueEventArgs.cs
- ItemList.cs
- Query.cs
- TPLETWProvider.cs
- CapabilitiesUse.cs
- SqlCachedBuffer.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- Missing.cs
- ObjectViewEntityCollectionData.cs
- HttpListenerContext.cs
- SourceItem.cs
- TypeListConverter.cs
- Logging.cs
- ControlCachePolicy.cs
- CodeCatchClause.cs
- DeferredTextReference.cs
- ConstructorBuilder.cs
- PathGeometry.cs
- MSAANativeProvider.cs
- GenerateTemporaryAssemblyTask.cs
- ImageKeyConverter.cs
- UnSafeCharBuffer.cs
- Package.cs
- URIFormatException.cs
- DocComment.cs
- HtmlTableRowCollection.cs
- SymbolMethod.cs
- CodePropertyReferenceExpression.cs
- SimpleHandlerFactory.cs
- ErrorEventArgs.cs
- NativeMethodsCLR.cs
- ClientSettings.cs
- NativeMethods.cs
- CustomLineCap.cs
- CodeDomConfigurationHandler.cs
- EngineSite.cs
- _CookieModule.cs
- DPAPIProtectedConfigurationProvider.cs
- DataGridViewRowsRemovedEventArgs.cs
- Win32Exception.cs
- WindowsListBox.cs
- CheckoutException.cs
- LogStream.cs
- StatusBarDrawItemEvent.cs
- StaticDataManager.cs
- GlobalizationAssembly.cs
- DetailsViewPageEventArgs.cs
- CodeMethodInvokeExpression.cs
- DesignTimeTemplateParser.cs
- StrokeCollectionConverter.cs
- ExpressionLexer.cs
- AppSettingsSection.cs
- StylusDownEventArgs.cs
- MetadataCollection.cs
- URI.cs
- CompModSwitches.cs
- NamespaceDisplayAutomationPeer.cs
- RSAOAEPKeyExchangeDeformatter.cs
- Propagator.JoinPropagator.cs
- GeneralTransform.cs
- TextServicesLoader.cs
- odbcmetadatafactory.cs
- DbMetaDataCollectionNames.cs
- DeclarativeCatalogPart.cs
- SimpleHandlerFactory.cs
- Table.cs
- TableCellAutomationPeer.cs
- Component.cs
- InvalidCastException.cs
- ProcessHost.cs
- TypedElement.cs
- COAUTHINFO.cs
- StrongTypingException.cs
- Panel.cs
- DiffuseMaterial.cs