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
- VariableDesigner.xaml.cs
- WebResourceUtil.cs
- BamlWriter.cs
- EntryWrittenEventArgs.cs
- DateTimeOffsetStorage.cs
- HttpConfigurationSystem.cs
- InvalidateEvent.cs
- WebPartManagerInternals.cs
- CodeAccessPermission.cs
- SafeSystemMetrics.cs
- Int64.cs
- MultiPartWriter.cs
- ResXResourceSet.cs
- ItemCollection.cs
- XXXInfos.cs
- CombinedHttpChannel.cs
- ConsumerConnectionPointCollection.cs
- WeakReference.cs
- HandleCollector.cs
- WebRequestModulesSection.cs
- HttpRuntimeSection.cs
- safelink.cs
- StoreItemCollection.Loader.cs
- ResourceProperty.cs
- COM2EnumConverter.cs
- ToolstripProfessionalRenderer.cs
- Page.cs
- BitmapCodecInfo.cs
- WebPartTransformerCollection.cs
- XmlElementList.cs
- TableLayoutStyleCollection.cs
- OrCondition.cs
- RoleGroupCollection.cs
- DateTimeValueSerializer.cs
- WebPartHeaderCloseVerb.cs
- OdbcDataAdapter.cs
- FirstMatchCodeGroup.cs
- Compiler.cs
- BitConverter.cs
- SQLConvert.cs
- DataGridLinkButton.cs
- DateTimeSerializationSection.cs
- EventManager.cs
- NullableIntSumAggregationOperator.cs
- Accessible.cs
- AttributeEmitter.cs
- TreeNodeMouseHoverEvent.cs
- WorkflowMarkupSerializationException.cs
- BrowserCapabilitiesFactoryBase.cs
- CodeExporter.cs
- OracleSqlParser.cs
- SingleSelectRootGridEntry.cs
- CompositeDataBoundControl.cs
- XMLDiffLoader.cs
- ChangeConflicts.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- NullableLongSumAggregationOperator.cs
- QilBinary.cs
- PassportPrincipal.cs
- DbDataAdapter.cs
- GPPOINTF.cs
- ReferenceAssemblyAttribute.cs
- SqlCaseSimplifier.cs
- WebProxyScriptElement.cs
- AbandonedMutexException.cs
- InfoCardTrace.cs
- BypassElementCollection.cs
- WebPartTransformer.cs
- StackSpiller.Temps.cs
- XPathSelfQuery.cs
- DomainUpDown.cs
- CollectionViewSource.cs
- CompilerState.cs
- SqlCacheDependencyDatabaseCollection.cs
- EmptyStringExpandableObjectConverter.cs
- Model3DGroup.cs
- XPathSelfQuery.cs
- StateBag.cs
- X509Certificate2.cs
- OleDbWrapper.cs
- Win32.cs
- MD5.cs
- PathParser.cs
- CompilationUnit.cs
- ScriptingScriptResourceHandlerSection.cs
- DefaultHttpHandler.cs
- SignatureToken.cs
- SqlUdtInfo.cs
- LogFlushAsyncResult.cs
- _PooledStream.cs
- ReflectionPermission.cs
- RootBuilder.cs
- RowsCopiedEventArgs.cs
- XmlSchemaObject.cs
- ResourceKey.cs
- ProtectedConfigurationSection.cs
- SEHException.cs
- WebConfigurationHostFileChange.cs
- SerializationInfo.cs
- TemplatedWizardStep.cs