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
- MethodRental.cs
- BufferedOutputStream.cs
- PeerNameResolver.cs
- TextBlockAutomationPeer.cs
- ButtonRenderer.cs
- BrowserInteropHelper.cs
- TemplateField.cs
- PtsHost.cs
- ProfileModule.cs
- DbDataReader.cs
- _LoggingObject.cs
- ToggleProviderWrapper.cs
- Regex.cs
- BoundsDrawingContextWalker.cs
- DSACryptoServiceProvider.cs
- LiteralDesigner.cs
- MethodCallConverter.cs
- SmtpLoginAuthenticationModule.cs
- TileBrush.cs
- ACE.cs
- MultipleViewProviderWrapper.cs
- KeyedHashAlgorithm.cs
- StylusPointCollection.cs
- SubstitutionDesigner.cs
- DbProviderServices.cs
- DeclarativeExpressionConditionDeclaration.cs
- NativeMethods.cs
- DataSourceCacheDurationConverter.cs
- TextAction.cs
- TableItemPatternIdentifiers.cs
- SmiMetaDataProperty.cs
- InvocationExpression.cs
- ServiceParser.cs
- XmlTextWriter.cs
- RunClient.cs
- BuildManager.cs
- DoubleAnimationClockResource.cs
- SessionStateModule.cs
- TabletDeviceInfo.cs
- SwitchElementsCollection.cs
- AnimationTimeline.cs
- SendReply.cs
- ObjectContext.cs
- ClientUtils.cs
- ErrorStyle.cs
- Knowncolors.cs
- PtsHelper.cs
- Int32RectConverter.cs
- MultiSelectRootGridEntry.cs
- Visitors.cs
- Wizard.cs
- XmlNamespaceMappingCollection.cs
- AdPostCacheSubstitution.cs
- TCPClient.cs
- TimeSpanSecondsConverter.cs
- SoapProtocolReflector.cs
- BulletedList.cs
- Error.cs
- CodeGen.cs
- ProfileGroupSettings.cs
- SemanticResolver.cs
- MbpInfo.cs
- TranslateTransform3D.cs
- MemberInfoSerializationHolder.cs
- RegistrationServices.cs
- ModelChangedEventArgsImpl.cs
- DataGridPageChangedEventArgs.cs
- AutoResizedEvent.cs
- externdll.cs
- DomainUpDown.cs
- HasCopySemanticsAttribute.cs
- XmlSchemaSubstitutionGroup.cs
- AsyncCompletedEventArgs.cs
- DbProviderSpecificTypePropertyAttribute.cs
- SmiMetaDataProperty.cs
- SectionInformation.cs
- DataGridViewCellStyle.cs
- SchemaTypeEmitter.cs
- NullableLongAverageAggregationOperator.cs
- RtfNavigator.cs
- HtmlTableCellCollection.cs
- PropertyNames.cs
- SelectionProviderWrapper.cs
- HostedImpersonationContext.cs
- LogicalExpressionEditor.cs
- OLEDB_Util.cs
- HtmlCalendarAdapter.cs
- _DisconnectOverlappedAsyncResult.cs
- CDSCollectionETWBCLProvider.cs
- HwndHost.cs
- CodeTypeReference.cs
- ListSortDescription.cs
- KeyboardEventArgs.cs
- HandlerBase.cs
- DataViewListener.cs
- RuleSettings.cs
- CommandLineParser.cs
- DataControlImageButton.cs
- DataGridCaption.cs
- ConfigXmlDocument.cs