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
- ExtenderControl.cs
- MetadataPropertyAttribute.cs
- AsyncStreamReader.cs
- NotSupportedException.cs
- GrammarBuilderRuleRef.cs
- ObjectViewEntityCollectionData.cs
- RecordsAffectedEventArgs.cs
- QuotedPrintableStream.cs
- InternalsVisibleToAttribute.cs
- ColorInterpolationModeValidation.cs
- FixedPosition.cs
- DoubleAnimationUsingPath.cs
- SourceItem.cs
- AutomationEventArgs.cs
- EdmSchemaAttribute.cs
- VBCodeProvider.cs
- MessageHeaderDescription.cs
- DesignerActionMethodItem.cs
- MaxValueConverter.cs
- InheritedPropertyDescriptor.cs
- BulletedListEventArgs.cs
- PenCursorManager.cs
- HideDisabledControlAdapter.cs
- PrivilegedConfigurationManager.cs
- AnnotationAdorner.cs
- SqlException.cs
- EntityCommandDefinition.cs
- PageCatalogPartDesigner.cs
- Exception.cs
- Brush.cs
- RootBrowserWindowProxy.cs
- GregorianCalendar.cs
- ServiceContractGenerator.cs
- Schedule.cs
- EntityKey.cs
- QueryLifecycle.cs
- BasicHttpSecurity.cs
- ExpressionBindingCollection.cs
- AdapterUtil.cs
- HMACSHA256.cs
- JpegBitmapDecoder.cs
- UseManagedPresentationBindingElementImporter.cs
- Pkcs9Attribute.cs
- FormsIdentity.cs
- ObjectStorage.cs
- AddInToken.cs
- TaskFileService.cs
- FilterRepeater.cs
- EditorOptionAttribute.cs
- DbMetaDataCollectionNames.cs
- ScriptRegistrationManager.cs
- GPPOINTF.cs
- CompilerHelpers.cs
- XamlReaderConstants.cs
- SelectionPatternIdentifiers.cs
- ServiceBuildProvider.cs
- StrokeCollection.cs
- NetTcpSection.cs
- ValueTable.cs
- CryptoHandle.cs
- IsolatedStorageFile.cs
- SelectionProcessor.cs
- XmlSerializerFactory.cs
- UrlPropertyAttribute.cs
- invalidudtexception.cs
- XPathChildIterator.cs
- SqlProfileProvider.cs
- XmlSchemaSimpleContent.cs
- activationcontext.cs
- ManualResetEventSlim.cs
- Int64.cs
- WorkflowOperationBehavior.cs
- CollectionConverter.cs
- FigureHelper.cs
- X509Certificate.cs
- XmlName.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ContextMenuStrip.cs
- SessionState.cs
- _SSPIWrapper.cs
- ThreadStateException.cs
- XmlSchemaSimpleTypeList.cs
- TablePattern.cs
- TextSpan.cs
- HelloMessageApril2005.cs
- LongTypeConverter.cs
- SqlProcedureAttribute.cs
- EmptyStringExpandableObjectConverter.cs
- MimeParameters.cs
- TypeDescriptionProvider.cs
- returneventsaver.cs
- JsonQueryStringConverter.cs
- ButtonColumn.cs
- TreeNodeSelectionProcessor.cs
- COAUTHIDENTITY.cs
- MultiView.cs
- SQLString.cs
- FormatException.cs
- ReliabilityContractAttribute.cs
- SamlAttribute.cs