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
- TimeIntervalCollection.cs
- XmlDownloadManager.cs
- ConfigurationSectionGroup.cs
- TextEffectCollection.cs
- messageonlyhwndwrapper.cs
- ThreadStartException.cs
- Vector3DAnimation.cs
- RadioButton.cs
- ContractCodeDomInfo.cs
- PLINQETWProvider.cs
- Geometry.cs
- SignatureConfirmationElement.cs
- TakeOrSkipQueryOperator.cs
- TemplatePropertyEntry.cs
- MulticastOption.cs
- PointLightBase.cs
- FormsAuthenticationUser.cs
- Object.cs
- HMACSHA1.cs
- ControlCommandSet.cs
- NativeActivityContext.cs
- XComponentModel.cs
- SetIndexBinder.cs
- KeySplineConverter.cs
- ContentFilePart.cs
- SiteMapProvider.cs
- BrowsableAttribute.cs
- WhitespaceReader.cs
- SourceItem.cs
- LambdaCompiler.Address.cs
- BitVector32.cs
- Clipboard.cs
- TryExpression.cs
- RoutedPropertyChangedEventArgs.cs
- WebDescriptionAttribute.cs
- CompilerScopeManager.cs
- LinkLabelLinkClickedEvent.cs
- SplineKeyFrames.cs
- ExtenderProvidedPropertyAttribute.cs
- ToolTip.cs
- BooleanToVisibilityConverter.cs
- DbProviderFactoriesConfigurationHandler.cs
- DateTimeHelper.cs
- ByteAnimationUsingKeyFrames.cs
- UrlEncodedParameterWriter.cs
- ToolStripTextBox.cs
- DiscoveryExceptionDictionary.cs
- HtmlTableRowCollection.cs
- PackWebResponse.cs
- CodeDesigner.cs
- FormatterServices.cs
- TiffBitmapEncoder.cs
- DataGridColumnReorderingEventArgs.cs
- SoapDocumentServiceAttribute.cs
- ConstrainedDataObject.cs
- CodeMethodInvokeExpression.cs
- ListControlConvertEventArgs.cs
- SafeNativeMethods.cs
- _IPv6Address.cs
- RemotingConfiguration.cs
- ConnectionStringsExpressionBuilder.cs
- FolderNameEditor.cs
- OdbcDataReader.cs
- ScrollPattern.cs
- BamlLocalizabilityResolver.cs
- Content.cs
- SerializationStore.cs
- DataDocumentXPathNavigator.cs
- AspNetCompatibilityRequirementsAttribute.cs
- QilChoice.cs
- ApplicationId.cs
- OneOfConst.cs
- MergeLocalizationDirectives.cs
- StructuredProperty.cs
- MachinePropertyVariants.cs
- SapiRecoInterop.cs
- LinqDataSourceContextData.cs
- SqlInfoMessageEvent.cs
- WebPartConnectVerb.cs
- TextStore.cs
- ActivationServices.cs
- DelegateBodyWriter.cs
- PublisherIdentityPermission.cs
- ListSourceHelper.cs
- UriWriter.cs
- EventLogPermission.cs
- UnknownWrapper.cs
- OciEnlistContext.cs
- PinnedBufferMemoryStream.cs
- DateTimeFormat.cs
- HostedTransportConfigurationManager.cs
- _FtpDataStream.cs
- CommandLibraryHelper.cs
- controlskin.cs
- WebDescriptionAttribute.cs
- CodeMemberField.cs
- WebPartAuthorizationEventArgs.cs
- XsdDateTime.cs
- CommandConverter.cs
- PageFunction.cs