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
- EditorAttribute.cs
- WindowsAuthenticationEventArgs.cs
- AccessText.cs
- BaseTemplateBuildProvider.cs
- EditingCommands.cs
- APCustomTypeDescriptor.cs
- XamlSerializerUtil.cs
- CalendarDataBindingHandler.cs
- PrimitiveXmlSerializers.cs
- LineVisual.cs
- SpecialFolderEnumConverter.cs
- VideoDrawing.cs
- AbsoluteQuery.cs
- HttpCacheVary.cs
- Select.cs
- WSTrustDec2005.cs
- StructureChangedEventArgs.cs
- TextServicesHost.cs
- OleDbPropertySetGuid.cs
- SoapAttributes.cs
- SmiXetterAccessMap.cs
- LineGeometry.cs
- CellCreator.cs
- ProxyFragment.cs
- shaperfactory.cs
- XmlSchemaSimpleContentRestriction.cs
- HostProtectionPermission.cs
- GeometryCombineModeValidation.cs
- Semaphore.cs
- ResourceSet.cs
- SoapExtensionTypeElement.cs
- ImportContext.cs
- ToolStripComboBox.cs
- FastPropertyAccessor.cs
- GradientStop.cs
- BuildResultCache.cs
- StatusBarDrawItemEvent.cs
- GZipDecoder.cs
- DbConnectionPool.cs
- InkCanvasSelection.cs
- RequestStatusBarUpdateEventArgs.cs
- BrowserCapabilitiesCompiler.cs
- ConfigXmlText.cs
- HierarchicalDataSourceConverter.cs
- StatusBarItemAutomationPeer.cs
- ImportContext.cs
- PixelShader.cs
- MetafileHeader.cs
- AjaxFrameworkAssemblyAttribute.cs
- TraceHwndHost.cs
- ProviderException.cs
- TemplateBindingExpressionConverter.cs
- ComponentRenameEvent.cs
- GradientStop.cs
- HtmlInputHidden.cs
- DataContractJsonSerializer.cs
- mediaclock.cs
- WindowsListView.cs
- TypeConverterAttribute.cs
- WebEvents.cs
- Freezable.cs
- SignedXml.cs
- CodeGroup.cs
- UdpDiscoveryEndpoint.cs
- FrameAutomationPeer.cs
- PseudoWebRequest.cs
- MulticastDelegate.cs
- NetworkInformationException.cs
- GacUtil.cs
- BidirectionalDictionary.cs
- ComboBoxRenderer.cs
- ConfigurationValidatorAttribute.cs
- Model3DGroup.cs
- FileVersionInfo.cs
- PathGradientBrush.cs
- EntityConnectionStringBuilder.cs
- HMACSHA384.cs
- Property.cs
- PTProvider.cs
- SecurityElementBase.cs
- StorageMappingFragment.cs
- PathGeometry.cs
- TreeNodeSelectionProcessor.cs
- PointKeyFrameCollection.cs
- HostUtils.cs
- ListView.cs
- StaticExtension.cs
- XmlSchemaType.cs
- MethodBuilder.cs
- XsdDuration.cs
- AudioBase.cs
- EncryptedPackageFilter.cs
- InertiaTranslationBehavior.cs
- ControlPaint.cs
- BitmapSizeOptions.cs
- CacheDict.cs
- TargetFrameworkAttribute.cs
- SpStreamWrapper.cs
- WebServiceResponseDesigner.cs
- BindingMemberInfo.cs