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
- HwndStylusInputProvider.cs
- Int16.cs
- RandomNumberGenerator.cs
- VerificationAttribute.cs
- UserControlDesigner.cs
- ButtonAutomationPeer.cs
- TrackingParameters.cs
- DebugInfoGenerator.cs
- MLangCodePageEncoding.cs
- InkCanvasInnerCanvas.cs
- TreeNodeCollection.cs
- _SSPIWrapper.cs
- CodeNamespaceImportCollection.cs
- ByteAnimationUsingKeyFrames.cs
- CodeConditionStatement.cs
- QueryableDataSourceHelper.cs
- TraceXPathNavigator.cs
- Exception.cs
- UnknownWrapper.cs
- AQNBuilder.cs
- TransactionFlowBindingElement.cs
- TableItemProviderWrapper.cs
- ProgressBarAutomationPeer.cs
- WriteableBitmap.cs
- CompatibleIComparer.cs
- ColorDialog.cs
- XmlSchemaDatatype.cs
- X509ScopedServiceCertificateElement.cs
- CachedBitmap.cs
- CookielessHelper.cs
- XmlElementCollection.cs
- DiffuseMaterial.cs
- EventLogEntry.cs
- OperandQuery.cs
- processwaithandle.cs
- DesignTimeParseData.cs
- BindingListCollectionView.cs
- Italic.cs
- RenderData.cs
- RefreshEventArgs.cs
- DataRecordInternal.cs
- BitmapEffectCollection.cs
- ICspAsymmetricAlgorithm.cs
- CrossAppDomainChannel.cs
- EnlistmentState.cs
- CodeLabeledStatement.cs
- SqlConnectionPoolGroupProviderInfo.cs
- ValueHandle.cs
- ArrangedElement.cs
- LoopExpression.cs
- ToolboxItemFilterAttribute.cs
- WindowsSlider.cs
- PropertyGridEditorPart.cs
- Cursors.cs
- NumericUpDown.cs
- EraserBehavior.cs
- XamlWriter.cs
- Converter.cs
- ParameterDataSourceExpression.cs
- HttpInputStream.cs
- AppDomainAttributes.cs
- CommandArguments.cs
- Binding.cs
- InputElement.cs
- WebServiceAttribute.cs
- WebPartTransformerAttribute.cs
- ExceptionUtil.cs
- ObjectSet.cs
- DesignerAdapterUtil.cs
- MessageSmuggler.cs
- WindowsSecurityToken.cs
- ThemeDirectoryCompiler.cs
- RuleProcessor.cs
- XsdBuildProvider.cs
- WhitespaceRule.cs
- PolyLineSegmentFigureLogic.cs
- ResourceDescriptionAttribute.cs
- StrokeNodeData.cs
- DoubleCollection.cs
- ManipulationStartingEventArgs.cs
- MetadataArtifactLoaderResource.cs
- DateTimeOffset.cs
- _UncName.cs
- StorageModelBuildProvider.cs
- DeviceContext.cs
- ToolStripPanelRow.cs
- RadioButtonFlatAdapter.cs
- LinearGradientBrush.cs
- IDQuery.cs
- CustomErrorCollection.cs
- SQLDecimalStorage.cs
- HttpModuleCollection.cs
- TextMarkerSource.cs
- TraceXPathNavigator.cs
- AudioException.cs
- DocumentSequenceHighlightLayer.cs
- ClosureBinding.cs
- CriticalExceptions.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- LinqDataSourceSelectEventArgs.cs