Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WindowsScrollBar.cs
- TextEditorContextMenu.cs
- FastEncoder.cs
- SafeEventLogWriteHandle.cs
- DecimalSumAggregationOperator.cs
- SByte.cs
- Stack.cs
- XmlSchemaObjectCollection.cs
- Crypto.cs
- TimeSpanValidatorAttribute.cs
- RestHandlerFactory.cs
- FormatConvertedBitmap.cs
- ProcessStartInfo.cs
- ListBoxItemAutomationPeer.cs
- MouseButton.cs
- RelationalExpressions.cs
- TableLayoutStyleCollection.cs
- MemberDescriptor.cs
- KeyValueSerializer.cs
- WebCategoryAttribute.cs
- SqlWriter.cs
- CachedTypeface.cs
- InstanceView.cs
- XamlPointCollectionSerializer.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- TTSEngineTypes.cs
- DataGridViewImageColumn.cs
- EncryptedXml.cs
- ParallelLoopState.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- FillBehavior.cs
- ColumnTypeConverter.cs
- DataRowView.cs
- FrameworkElement.cs
- ScaleTransform.cs
- MenuItemStyleCollection.cs
- TextProviderWrapper.cs
- AbstractExpressions.cs
- ComIntegrationManifestGenerator.cs
- TreeView.cs
- CommandEventArgs.cs
- DictionarySurrogate.cs
- DeclaredTypeValidator.cs
- TypeLibConverter.cs
- LogStream.cs
- ImmComposition.cs
- TargetFrameworkAttribute.cs
- SQLCharsStorage.cs
- Grid.cs
- XPathDocumentIterator.cs
- TextDecorations.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- ArgumentOutOfRangeException.cs
- ProcessModelSection.cs
- SqlCommand.cs
- Synchronization.cs
- FormViewInsertEventArgs.cs
- NativeDirectoryServicesQueryAPIs.cs
- MemoryMappedViewAccessor.cs
- ObjectAssociationEndMapping.cs
- BindingMemberInfo.cs
- CheckBoxBaseAdapter.cs
- MiniParameterInfo.cs
- TextBounds.cs
- ContentDisposition.cs
- FixedPageAutomationPeer.cs
- ResourceProviderFactory.cs
- IndexerNameAttribute.cs
- InfiniteIntConverter.cs
- DocumentSequence.cs
- ModifierKeysValueSerializer.cs
- infer.cs
- DictionaryBase.cs
- WebPartTransformerCollection.cs
- WebResourceAttribute.cs
- DeclarativeConditionsCollection.cs
- CompositeCollectionView.cs
- TrackingMemoryStreamFactory.cs
- UnmanagedMarshal.cs
- TypeUnloadedException.cs
- UriWriter.cs
- FaultException.cs
- XhtmlConformanceSection.cs
- ArgumentElement.cs
- PrimarySelectionAdorner.cs
- XmlWriterDelegator.cs
- ProxySimple.cs
- CollectionType.cs
- WebPartTransformer.cs
- RegistryDataKey.cs
- Column.cs
- TextModifierScope.cs
- BindingListCollectionView.cs
- TypeSemantics.cs
- HtmlForm.cs
- FileChangesMonitor.cs
- XsltQilFactory.cs
- WinEventQueueItem.cs
- DataGridColumnCollection.cs
- XDRSchema.cs