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
- AnonymousIdentificationModule.cs
- SqlAliaser.cs
- OleDbRowUpdatingEvent.cs
- StateItem.cs
- XhtmlBasicLabelAdapter.cs
- Image.cs
- TypeUtils.cs
- HttpCapabilitiesBase.cs
- RightsManagementEncryptedStream.cs
- HealthMonitoringSection.cs
- WebPartActionVerb.cs
- DbUpdateCommandTree.cs
- Opcode.cs
- PropertySourceInfo.cs
- MouseEventArgs.cs
- Light.cs
- Visual3D.cs
- ClientUrlResolverWrapper.cs
- ThousandthOfEmRealDoubles.cs
- HttpCapabilitiesEvaluator.cs
- ConstructorNeedsTagAttribute.cs
- HttpCacheParams.cs
- EncodingInfo.cs
- DataSourceXmlClassAttribute.cs
- _Win32.cs
- NotEqual.cs
- XmlWellformedWriter.cs
- Select.cs
- HandleCollector.cs
- CultureMapper.cs
- ListBoxItemWrapperAutomationPeer.cs
- TextMetrics.cs
- formatstringdialog.cs
- ImplicitInputBrush.cs
- XamlReaderHelper.cs
- Item.cs
- ExpandSegment.cs
- PropertyGroupDescription.cs
- EnlistmentTraceIdentifier.cs
- GAC.cs
- IPipelineRuntime.cs
- SineEase.cs
- Formatter.cs
- DateTimeFormat.cs
- Char.cs
- XmlSchemaParticle.cs
- ListView.cs
- RadioButton.cs
- InvalidateEvent.cs
- EndpointConfigContainer.cs
- PlatformCulture.cs
- EntityDataSourceStatementEditorForm.cs
- SmtpReplyReaderFactory.cs
- CodeTypeReference.cs
- SafeHGlobalHandleCritical.cs
- DbParameterHelper.cs
- ZipIOExtraFieldZip64Element.cs
- unsafenativemethodstextservices.cs
- IssuedTokensHeader.cs
- NullableIntAverageAggregationOperator.cs
- VisualProxy.cs
- GridLengthConverter.cs
- ReliableMessagingVersion.cs
- BrowserCapabilitiesFactory.cs
- HierarchicalDataTemplate.cs
- configsystem.cs
- unitconverter.cs
- Crypto.cs
- XmlnsDefinitionAttribute.cs
- JavaScriptSerializer.cs
- HttpClientCredentialType.cs
- RuntimeHelpers.cs
- Stack.cs
- Int32Converter.cs
- DecoderFallbackWithFailureFlag.cs
- Fonts.cs
- MessageQueueInstaller.cs
- ProviderException.cs
- Win32.cs
- EntityCollection.cs
- PathFigureCollectionConverter.cs
- CorrelationService.cs
- StrokeSerializer.cs
- XMLDiffLoader.cs
- IHttpResponseInternal.cs
- SoapHeaderException.cs
- DataBinder.cs
- CachedTypeface.cs
- MembershipSection.cs
- control.ime.cs
- ParagraphResult.cs
- DataReaderContainer.cs
- PackageDigitalSignatureManager.cs
- KerberosSecurityTokenAuthenticator.cs
- SqlUserDefinedAggregateAttribute.cs
- MethodBuilderInstantiation.cs
- ProfileSection.cs
- ControlBindingsCollection.cs
- WindowsRichEdit.cs
- MimeTypeMapper.cs