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
- SqlNotificationEventArgs.cs
- CompressedStack.cs
- GlyphManager.cs
- HandlerBase.cs
- BasicHttpBinding.cs
- SqlFunctionAttribute.cs
- SystemIcmpV6Statistics.cs
- StylusPoint.cs
- ListControlConvertEventArgs.cs
- __ConsoleStream.cs
- HtmlTableCell.cs
- OrderByQueryOptionExpression.cs
- Random.cs
- CodeCompileUnit.cs
- ToolStripContentPanel.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- KeySpline.cs
- TypefaceCollection.cs
- UIntPtr.cs
- OrderedEnumerableRowCollection.cs
- Material.cs
- BulletedList.cs
- CultureTableRecord.cs
- WCFServiceClientProxyGenerator.cs
- OleCmdHelper.cs
- RequestResizeEvent.cs
- GridViewSelectEventArgs.cs
- SettingsPropertyCollection.cs
- IPGlobalProperties.cs
- DataGridRowHeader.cs
- TextTreeUndoUnit.cs
- ObsoleteAttribute.cs
- SkewTransform.cs
- IconBitmapDecoder.cs
- PartManifestEntry.cs
- _BasicClient.cs
- MeshGeometry3D.cs
- PresentationTraceSources.cs
- LayoutEditorPart.cs
- SqlParameter.cs
- RegularExpressionValidator.cs
- MultiDataTrigger.cs
- Perspective.cs
- StylusTip.cs
- HttpHeaderCollection.cs
- SecurityTokenSerializer.cs
- MessageQueueCriteria.cs
- CardSpaceShim.cs
- RichTextBox.cs
- SafeRightsManagementHandle.cs
- Attributes.cs
- ToolStripItemImageRenderEventArgs.cs
- ListViewInsertionMark.cs
- TrustManagerMoreInformation.cs
- QilGenerator.cs
- XPathNodeInfoAtom.cs
- XamlGridLengthSerializer.cs
- FileEnumerator.cs
- MailAddressParser.cs
- DesignOnlyAttribute.cs
- RtfToXamlLexer.cs
- WindowsEditBoxRange.cs
- HttpClientCertificate.cs
- SHA1CryptoServiceProvider.cs
- SQLBytesStorage.cs
- WebBrowserBase.cs
- SecUtil.cs
- HttpRawResponse.cs
- StorageConditionPropertyMapping.cs
- ConvertersCollection.cs
- AssociationType.cs
- NullableBoolConverter.cs
- SQLString.cs
- StringBuilder.cs
- HMAC.cs
- XmlSchemaParticle.cs
- DataPagerFieldCollection.cs
- XmlNamespaceManager.cs
- CapabilitiesAssignment.cs
- Camera.cs
- RubberbandSelector.cs
- UriScheme.cs
- SqlDataSourceCommandEventArgs.cs
- KeyToListMap.cs
- Bits.cs
- DataBindEngine.cs
- SHA1Cng.cs
- UIElementHelper.cs
- HelpKeywordAttribute.cs
- SqlDependencyListener.cs
- BufferedWebEventProvider.cs
- NavigationProperty.cs
- LoginName.cs
- ManipulationLogic.cs
- NativeMethods.cs
- ChooseAction.cs
- CriticalHandle.cs
- BufferedGraphicsManager.cs
- QueryOpeningEnumerator.cs
- TextReader.cs