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
- AnnotationAdorner.cs
- MD5CryptoServiceProvider.cs
- ZipIOExtraFieldZip64Element.cs
- ToolStripDropDownMenu.cs
- DesignDataSource.cs
- BufferedConnection.cs
- ApplicationSecurityManager.cs
- BufferedStream.cs
- ListSortDescriptionCollection.cs
- ZipPackagePart.cs
- TdsParserStateObject.cs
- CapabilitiesState.cs
- DesignerVerb.cs
- KoreanCalendar.cs
- DrawingGroup.cs
- ActiveXHelper.cs
- IdentityElement.cs
- IteratorFilter.cs
- OrderedEnumerableRowCollection.cs
- UserControl.cs
- AssemblySettingAttributes.cs
- ContextStaticAttribute.cs
- AutomationPropertyInfo.cs
- DataSourceView.cs
- _SslState.cs
- TabPage.cs
- CombinedGeometry.cs
- ClusterUtils.cs
- XmlJsonWriter.cs
- ExtenderHelpers.cs
- ListItemCollection.cs
- TrackingProfile.cs
- DataTemplateKey.cs
- XamlTypeMapper.cs
- PersonalizablePropertyEntry.cs
- ObjectQueryProvider.cs
- UniqueTransportManagerRegistration.cs
- XhtmlBasicPhoneCallAdapter.cs
- MonthChangedEventArgs.cs
- MasterPageBuildProvider.cs
- NoPersistScope.cs
- DesignerAdapterAttribute.cs
- ValueProviderWrapper.cs
- ImportContext.cs
- FixedSOMElement.cs
- SymDocumentType.cs
- LogLogRecordEnumerator.cs
- EntityConnectionStringBuilder.cs
- WinEventQueueItem.cs
- GPPOINTF.cs
- NameObjectCollectionBase.cs
- UIElementParaClient.cs
- MsmqOutputMessage.cs
- StyleTypedPropertyAttribute.cs
- Attributes.cs
- XmlReaderSettings.cs
- ConstrainedDataObject.cs
- SecurityIdentifierElement.cs
- AsyncPostBackErrorEventArgs.cs
- Comparer.cs
- Point3DAnimation.cs
- DownloadProgressEventArgs.cs
- KoreanLunisolarCalendar.cs
- KeyValuePairs.cs
- HandlerMappingMemo.cs
- DesignerProperties.cs
- Freezable.cs
- NamespaceListProperty.cs
- ExtensibleClassFactory.cs
- StylusOverProperty.cs
- StrokeSerializer.cs
- Rect3D.cs
- IImplicitResourceProvider.cs
- BaseValidator.cs
- LocalizabilityAttribute.cs
- FormatVersion.cs
- AssemblyContextControlItem.cs
- SamlAssertion.cs
- MetadataSource.cs
- Typeface.cs
- WindowsScrollBar.cs
- Rfc4050KeyFormatter.cs
- NavigationCommands.cs
- externdll.cs
- WebPartMenuStyle.cs
- CacheSection.cs
- TracePayload.cs
- PenContext.cs
- GatewayDefinition.cs
- DataGridViewLinkCell.cs
- RawUIStateInputReport.cs
- GetRecipientRequest.cs
- FormViewAutoFormat.cs
- TextBoxRenderer.cs
- DataKeyCollection.cs
- ITextView.cs
- WebBrowserProgressChangedEventHandler.cs
- XmlSchemaIdentityConstraint.cs
- DiscoveryClientDocuments.cs
- CryptoProvider.cs