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;
///
///
/// [To be supplied.]
///
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.
//------------------------------------------------------------------------------
//
// 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;
///
///
/// [To be supplied.]
///
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Quaternion.cs
- ChineseLunisolarCalendar.cs
- Component.cs
- XPathNodePointer.cs
- DrawingAttributesDefaultValueFactory.cs
- CancellationToken.cs
- RSAProtectedConfigurationProvider.cs
- FixedTextContainer.cs
- Inflater.cs
- FigureHelper.cs
- Identity.cs
- BamlWriter.cs
- IPAddress.cs
- AutoGeneratedFieldProperties.cs
- WinEventTracker.cs
- StrongName.cs
- ChildChangedEventArgs.cs
- XamlWriter.cs
- LocalizabilityAttribute.cs
- ValueTypeFixupInfo.cs
- mediaclock.cs
- PersonalizationProviderHelper.cs
- SoapAttributeOverrides.cs
- DataServiceKeyAttribute.cs
- PropertyGroupDescription.cs
- SoapSchemaExporter.cs
- AdapterUtil.cs
- ScrollChrome.cs
- SettingsBase.cs
- ExpressionBinding.cs
- PhysicalFontFamily.cs
- AdPostCacheSubstitution.cs
- odbcmetadatafactory.cs
- HtmlShimManager.cs
- AsyncResult.cs
- DataRowChangeEvent.cs
- MappingSource.cs
- WebZone.cs
- XmlDocumentViewSchema.cs
- ExpressionEditorAttribute.cs
- LocatorManager.cs
- WebBrowser.cs
- COAUTHINFO.cs
- XamlWriterExtensions.cs
- ToolStripSeparator.cs
- _ListenerRequestStream.cs
- RuleInfoComparer.cs
- TrackingDataItem.cs
- IDictionary.cs
- SchemaNotation.cs
- DataServices.cs
- SourceFileInfo.cs
- SelectiveScrollingGrid.cs
- DataBindingExpressionBuilder.cs
- UIElementAutomationPeer.cs
- PropertyGrid.cs
- SemaphoreFullException.cs
- SafeNativeMethods.cs
- ContainerControl.cs
- ModuleBuilder.cs
- TextEmbeddedObject.cs
- SeekableMessageNavigator.cs
- MiniCustomAttributeInfo.cs
- ListViewEditEventArgs.cs
- ExpandoObject.cs
- GeometryConverter.cs
- _ChunkParse.cs
- SendMailErrorEventArgs.cs
- XsdDuration.cs
- XmlTextWriter.cs
- EmptyStringExpandableObjectConverter.cs
- Listen.cs
- ClrProviderManifest.cs
- CheckedPointers.cs
- ComponentChangedEvent.cs
- DateTimeParse.cs
- PlainXmlWriter.cs
- Label.cs
- Page.cs
- AppDomainAttributes.cs
- EventHandlerList.cs
- DecimalKeyFrameCollection.cs
- MethodExpr.cs
- CustomErrorsSectionWrapper.cs
- RuleConditionDialog.cs
- XMLSyntaxException.cs
- SslStream.cs
- EastAsianLunisolarCalendar.cs
- BitmapEffectGeneralTransform.cs
- ArglessEventHandlerProxy.cs
- XmlSchemaImport.cs
- ContentOperations.cs
- XPathPatternParser.cs
- StoreAnnotationsMap.cs
- Expression.DebuggerProxy.cs
- SubqueryRules.cs
- ByteAnimationBase.cs
- ParameterCollection.cs
- XmlSchemaCompilationSettings.cs
- ExtendedPropertyCollection.cs