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
- CallbackException.cs
- HtmlToClrEventProxy.cs
- DecoderFallback.cs
- Parser.cs
- DropSource.cs
- SchemaMapping.cs
- BamlLocalizableResourceKey.cs
- OperandQuery.cs
- ClrPerspective.cs
- IntranetCredentialPolicy.cs
- TableLayoutPanel.cs
- SystemIPGlobalStatistics.cs
- ListenerElementsCollection.cs
- ToolStripArrowRenderEventArgs.cs
- SimpleWorkerRequest.cs
- control.ime.cs
- UnaryNode.cs
- SafeProcessHandle.cs
- StringCollectionEditor.cs
- XPathNavigatorKeyComparer.cs
- PageSettings.cs
- XmlNamedNodeMap.cs
- SqlComparer.cs
- LicFileLicenseProvider.cs
- DockProviderWrapper.cs
- _DigestClient.cs
- UnknownWrapper.cs
- HitTestDrawingContextWalker.cs
- DocumentXPathNavigator.cs
- ScriptingRoleServiceSection.cs
- ReverseQueryOperator.cs
- InvalidCastException.cs
- MenuItemBinding.cs
- NumberAction.cs
- SByte.cs
- QilLiteral.cs
- CodeStatement.cs
- ExtenderControl.cs
- JsonEncodingStreamWrapper.cs
- DbProviderFactory.cs
- MethodAccessException.cs
- PointHitTestResult.cs
- ContainerParagraph.cs
- ComplexTypeEmitter.cs
- TreeNodeConverter.cs
- BamlCollectionHolder.cs
- XamlTypeMapperSchemaContext.cs
- SqlTrackingQuery.cs
- MDIControlStrip.cs
- BrowserCapabilitiesCodeGenerator.cs
- Native.cs
- MobileCategoryAttribute.cs
- EncodingStreamWrapper.cs
- TargetConverter.cs
- Material.cs
- WindowsAuthenticationModule.cs
- DBParameter.cs
- ChtmlTextWriter.cs
- ParallelActivityDesigner.cs
- GeneralTransformGroup.cs
- httpapplicationstate.cs
- XhtmlBasicLinkAdapter.cs
- OpacityConverter.cs
- FormsAuthenticationTicket.cs
- NativeMethods.cs
- DataBoundControl.cs
- AttributeAction.cs
- TrackingMemoryStreamFactory.cs
- IntranetCredentialPolicy.cs
- LabelAutomationPeer.cs
- WebSysDescriptionAttribute.cs
- UInt16.cs
- RowToFieldTransformer.cs
- ZipIOLocalFileHeader.cs
- List.cs
- WebDisplayNameAttribute.cs
- InsufficientMemoryException.cs
- DynamicScriptObject.cs
- PrintPreviewDialog.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ClientConfigPaths.cs
- GeneralTransformGroup.cs
- InstanceData.cs
- ConnectionManagementElementCollection.cs
- MeasureItemEvent.cs
- OleDbEnumerator.cs
- HtmlGenericControl.cs
- Reference.cs
- InternalConfigSettingsFactory.cs
- TrackingExtract.cs
- EFTableProvider.cs
- WebPartEditorApplyVerb.cs
- RelationshipNavigation.cs
- StringUtil.cs
- WebBrowserPermission.cs
- MarkupExtensionSerializer.cs
- FrameworkContentElement.cs
- DeploymentSection.cs
- CustomAttribute.cs