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
- XmlBindingWorker.cs
- TemplateBuilder.cs
- Polygon.cs
- SubclassTypeValidator.cs
- ColorMap.cs
- AssemblySettingAttributes.cs
- TextParaLineResult.cs
- RewritingValidator.cs
- WCFBuildProvider.cs
- PersonalizablePropertyEntry.cs
- CodeLinePragma.cs
- ObjectContextServiceProvider.cs
- InputDevice.cs
- SelfIssuedAuthRSAPKCS1SignatureDeformatter.cs
- WebBrowserNavigatingEventHandler.cs
- SqlBooleanMismatchVisitor.cs
- MessageSecurityOverMsmqElement.cs
- ComContractElement.cs
- X509WindowsSecurityToken.cs
- ExpressionSelection.cs
- GeneralTransform.cs
- WebDescriptionAttribute.cs
- GB18030Encoding.cs
- DbDataReader.cs
- ServicePointManager.cs
- QueueProcessor.cs
- DragEventArgs.cs
- WebPartCatalogAddVerb.cs
- FloaterBaseParaClient.cs
- XamlRtfConverter.cs
- PerformanceCounter.cs
- DataControlButton.cs
- CorrelationScope.cs
- XmlILAnnotation.cs
- rsa.cs
- HtmlShimManager.cs
- Win32PrintDialog.cs
- TextCollapsingProperties.cs
- MimeBasePart.cs
- StructuralObject.cs
- WebScriptEnablingBehavior.cs
- RuntimeVariablesExpression.cs
- TextTrailingCharacterEllipsis.cs
- PathGeometry.cs
- DataGridViewImageCell.cs
- DefaultValidator.cs
- DataExchangeServiceBinder.cs
- SyndicationDeserializer.cs
- UDPClient.cs
- PackageDigitalSignatureManager.cs
- DataGridViewAutoSizeModeEventArgs.cs
- ContentType.cs
- GAC.cs
- DependencyPropertyConverter.cs
- DefaultSection.cs
- MarkupProperty.cs
- GPRECT.cs
- ExecutionEngineException.cs
- MaterialGroup.cs
- LinqTreeNodeEvaluator.cs
- Encoder.cs
- SqlProviderManifest.cs
- CroppedBitmap.cs
- ISessionStateStore.cs
- DPTypeDescriptorContext.cs
- PropertyPushdownHelper.cs
- DataPagerFieldCommandEventArgs.cs
- BindingOperations.cs
- WebControl.cs
- FreezableOperations.cs
- ToolStripLocationCancelEventArgs.cs
- AnnotationResourceCollection.cs
- Token.cs
- SystemInformation.cs
- ContextItem.cs
- CellLabel.cs
- ModuleBuilder.cs
- DescendentsWalker.cs
- UIElementAutomationPeer.cs
- GridItemPatternIdentifiers.cs
- HttpPostedFile.cs
- Emitter.cs
- XmlILTrace.cs
- MobileControlsSectionHandler.cs
- AccessibleObject.cs
- ListSortDescriptionCollection.cs
- EntityConnection.cs
- PageParserFilter.cs
- RawStylusInputCustomData.cs
- BitArray.cs
- AnnotationMap.cs
- XPathBinder.cs
- BitmapEncoder.cs
- HiddenField.cs
- StoreItemCollection.Loader.cs
- AdornerDecorator.cs
- StylusEventArgs.cs
- TextDecoration.cs
- TreeNodeCollection.cs
- HtmlControlPersistable.cs