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
- ReadOnlyCollection.cs
- DesignerWebPartChrome.cs
- MasterPageBuildProvider.cs
- Pens.cs
- RevocationPoint.cs
- FloatUtil.cs
- IdnElement.cs
- TextEditorParagraphs.cs
- RemotingServices.cs
- QueryExpression.cs
- _HeaderInfoTable.cs
- securitycriticaldataformultiplegetandset.cs
- COAUTHINFO.cs
- _ProxyChain.cs
- DataTableMappingCollection.cs
- Emitter.cs
- WebPartActionVerb.cs
- PrintEvent.cs
- NativeMethodsOther.cs
- Vector3DCollectionConverter.cs
- HTTP_SERVICE_CONFIG_URLACL_PARAM.cs
- BlurBitmapEffect.cs
- GridViewSortEventArgs.cs
- Common.cs
- OracleDataAdapter.cs
- SqlConnectionFactory.cs
- TiffBitmapEncoder.cs
- SmiRecordBuffer.cs
- MailDefinition.cs
- RewritingPass.cs
- XmlSerializerAssemblyAttribute.cs
- PipelineModuleStepContainer.cs
- TypedReference.cs
- DataGridViewTopLeftHeaderCell.cs
- UserControlCodeDomTreeGenerator.cs
- CodeTypeReference.cs
- TransformerInfo.cs
- ProcessHostConfigUtils.cs
- AttributeTable.cs
- HtmlTextViewAdapter.cs
- UserPreference.cs
- MouseWheelEventArgs.cs
- DesignerTransaction.cs
- FileResponseElement.cs
- LocalizableAttribute.cs
- ScaleTransform3D.cs
- Renderer.cs
- ActiveDocumentEvent.cs
- NumericUpDownAccelerationCollection.cs
- TrackingServices.cs
- RowUpdatedEventArgs.cs
- CompositeCollection.cs
- DPCustomTypeDescriptor.cs
- SetterBaseCollection.cs
- DbConnectionPoolGroupProviderInfo.cs
- RawKeyboardInputReport.cs
- ControlTemplate.cs
- ProxyWebPartManager.cs
- PathFigureCollection.cs
- WindowsContainer.cs
- ClockController.cs
- LinkButton.cs
- HtmlInputFile.cs
- FlowLayout.cs
- UriExt.cs
- ToolStripRenderer.cs
- ProcessModelSection.cs
- StreamSecurityUpgradeProvider.cs
- SafeIUnknown.cs
- Rectangle.cs
- _BufferOffsetSize.cs
- RubberbandSelector.cs
- DefaultCommandExtensionCallback.cs
- CultureInfoConverter.cs
- ObjectKeyFrameCollection.cs
- BuiltInExpr.cs
- SafeCryptContextHandle.cs
- TextSpanModifier.cs
- ProcessActivityTreeOptions.cs
- AppliedDeviceFiltersDialog.cs
- EntitySetBase.cs
- DataSourceCache.cs
- HtmlElementErrorEventArgs.cs
- ColorConverter.cs
- DragDropManager.cs
- SymbolMethod.cs
- InputManager.cs
- TimelineGroup.cs
- TextEditorDragDrop.cs
- DetailsViewUpdatedEventArgs.cs
- UserNameSecurityTokenAuthenticator.cs
- KeySpline.cs
- FolderBrowserDialogDesigner.cs
- DefaultTextStore.cs
- ReflectionUtil.cs
- ListBoxItemAutomationPeer.cs
- SqlDataSourceCustomCommandEditor.cs
- AssemblyCache.cs
- XPathEmptyIterator.cs
- UnsafeNativeMethods.cs