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
- TypeContext.cs
- UTF8Encoding.cs
- EmptyCollection.cs
- AssertHelper.cs
- MailAddressCollection.cs
- InitializationEventAttribute.cs
- DirtyTextRange.cs
- ProjectionCamera.cs
- OutputCacheSection.cs
- ChangeTracker.cs
- KeyBinding.cs
- TextTreeRootNode.cs
- WebPartConnectionsConnectVerb.cs
- PageStatePersister.cs
- ActionItem.cs
- SoapSchemaMember.cs
- rsa.cs
- OdbcException.cs
- ProxyHwnd.cs
- PipeStream.cs
- XmlSchemaAnnotated.cs
- CompilerTypeWithParams.cs
- SimpleWebHandlerParser.cs
- Array.cs
- EntityProviderServices.cs
- MachineKeySection.cs
- UserControlAutomationPeer.cs
- TypeUnloadedException.cs
- BooleanProjectedSlot.cs
- RichTextBox.cs
- ReachDocumentSequenceSerializerAsync.cs
- PathGradientBrush.cs
- MimeParameter.cs
- AuthenticationConfig.cs
- XmlSchemaException.cs
- SignatureToken.cs
- Quaternion.cs
- TextAutomationPeer.cs
- CodeTypeDeclaration.cs
- SafeCertificateStore.cs
- ControlPropertyNameConverter.cs
- ObsoleteAttribute.cs
- WebZone.cs
- ThumbAutomationPeer.cs
- FunctionNode.cs
- CultureSpecificCharacterBufferRange.cs
- BitmapEffectGeneralTransform.cs
- DataTrigger.cs
- indexingfiltermarshaler.cs
- Solver.cs
- GraphicsPathIterator.cs
- PageSettings.cs
- StreamReader.cs
- TimelineGroup.cs
- PolicyLevel.cs
- PostBackTrigger.cs
- Helper.cs
- FilterQuery.cs
- UserPreferenceChangingEventArgs.cs
- ValueExpressions.cs
- SectionVisual.cs
- SelectionBorderGlyph.cs
- SqlNotificationEventArgs.cs
- RuntimeArgumentHandle.cs
- DescendantOverDescendantQuery.cs
- GlyphingCache.cs
- ObservableCollection.cs
- DescendantQuery.cs
- ShapingEngine.cs
- EventRoute.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- BitmapEncoder.cs
- ChooseAction.cs
- ManipulationPivot.cs
- EntityProxyFactory.cs
- Helper.cs
- ContentFileHelper.cs
- WeakReferenceKey.cs
- ResponseStream.cs
- RemoteWebConfigurationHostServer.cs
- Model3DGroup.cs
- Compiler.cs
- ModifierKeysConverter.cs
- PackageProperties.cs
- TypeValidationEventArgs.cs
- HuffmanTree.cs
- WindowsScroll.cs
- HMAC.cs
- EdmComplexPropertyAttribute.cs
- ConnectionManagementElement.cs
- MasterPageParser.cs
- DataGridViewColumnConverter.cs
- InputLanguage.cs
- TextServicesDisplayAttribute.cs
- MessageQueueConverter.cs
- baseaxisquery.cs
- GroupBoxDesigner.cs
- Itemizer.cs
- sqlcontext.cs
- AmbiguousMatchException.cs