Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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;
///
///
/// [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
- BamlRecordHelper.cs
- XmlSchemaAll.cs
- TreeNode.cs
- WebServiceEnumData.cs
- CodeObjectCreateExpression.cs
- PostBackTrigger.cs
- JavaScriptString.cs
- SettingsBase.cs
- PathFigureCollection.cs
- TextEditorSpelling.cs
- EventWaitHandleSecurity.cs
- TextEffect.cs
- ModifierKeysValueSerializer.cs
- Part.cs
- EdmToObjectNamespaceMap.cs
- ComPlusServiceHost.cs
- SerializerDescriptor.cs
- embossbitmapeffect.cs
- ScrollProviderWrapper.cs
- DbConnectionPoolOptions.cs
- CodeCatchClause.cs
- SqlBuilder.cs
- ListenerServiceInstallComponent.cs
- base64Transforms.cs
- XmlAttributeCache.cs
- NameObjectCollectionBase.cs
- QuaternionAnimationUsingKeyFrames.cs
- ScrollChrome.cs
- Profiler.cs
- EntityDataSourceViewSchema.cs
- ConsumerConnectionPointCollection.cs
- TableLayoutStyleCollection.cs
- RowsCopiedEventArgs.cs
- ping.cs
- FlowDocumentReader.cs
- SessionPageStatePersister.cs
- XmlSchemaComplexType.cs
- MetadataArtifactLoader.cs
- Utilities.cs
- XmlWrappingWriter.cs
- CheckStoreFileValidityRequest.cs
- SafeCertificateContext.cs
- FixedFlowMap.cs
- Method.cs
- CodeDomSerializationProvider.cs
- ScriptDescriptor.cs
- XmlValueConverter.cs
- WebCategoryAttribute.cs
- DocumentPaginator.cs
- Control.cs
- SkewTransform.cs
- ColorContextHelper.cs
- ImportCatalogPart.cs
- LineServicesCallbacks.cs
- TableProviderWrapper.cs
- CriticalHandle.cs
- AtomMaterializerLog.cs
- DBCommand.cs
- BitmapSource.cs
- Point4D.cs
- GridProviderWrapper.cs
- RequiredAttributeAttribute.cs
- mediaclock.cs
- TransportConfigurationTypeElement.cs
- LocalizableResourceBuilder.cs
- DefaultValidator.cs
- DataSetMappper.cs
- SyndicationDeserializer.cs
- DataGridViewBindingCompleteEventArgs.cs
- PropertyEntry.cs
- BookmarkResumptionRecord.cs
- PtsHost.cs
- SpellerHighlightLayer.cs
- EntityProviderServices.cs
- IntegerValidatorAttribute.cs
- PageCache.cs
- ClientSettingsSection.cs
- ColumnClickEvent.cs
- ISAPIRuntime.cs
- FunctionImportElement.cs
- NegatedCellConstant.cs
- GridViewColumnHeader.cs
- HttpHandlersInstallComponent.cs
- Point4DConverter.cs
- EpmTargetTree.cs
- AlternationConverter.cs
- BadImageFormatException.cs
- HttpModuleAction.cs
- XhtmlConformanceSection.cs
- ResXResourceWriter.cs
- IODescriptionAttribute.cs
- HostedImpersonationContext.cs
- PipelineModuleStepContainer.cs
- QilScopedVisitor.cs
- NonClientArea.cs
- SecurityManager.cs
- DefinitionBase.cs
- StylusEventArgs.cs
- AtlasWeb.Designer.cs
- DataSourceProvider.cs