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
- StateChangeEvent.cs
- DesignerMetadata.cs
- LZCodec.cs
- ObjectListDesigner.cs
- _OSSOCK.cs
- PeerName.cs
- Metafile.cs
- WebPartAddingEventArgs.cs
- Column.cs
- Rect3DConverter.cs
- OdbcRowUpdatingEvent.cs
- MailDefinition.cs
- RelativeSource.cs
- EventMappingSettingsCollection.cs
- DrawingVisual.cs
- WSHttpBinding.cs
- DSASignatureFormatter.cs
- EventLogEntry.cs
- FlatButtonAppearance.cs
- PrivacyNoticeBindingElementImporter.cs
- DecoderExceptionFallback.cs
- ComponentChangingEvent.cs
- ToolStripItemRenderEventArgs.cs
- HtmlContainerControl.cs
- KeyNotFoundException.cs
- CodeNamespaceCollection.cs
- HtmlTableRow.cs
- WeakReferenceKey.cs
- SafeArchiveContext.cs
- WebRequestModuleElement.cs
- FieldToken.cs
- SecurityToken.cs
- XmlSchemaInclude.cs
- ListViewCommandEventArgs.cs
- DataGridColumnsPage.cs
- ValidationEventArgs.cs
- Style.cs
- MultipleViewProviderWrapper.cs
- OdbcConnectionOpen.cs
- Roles.cs
- Stacktrace.cs
- EditorZone.cs
- Blend.cs
- BigInt.cs
- AssemblyUtil.cs
- ClickablePoint.cs
- SlipBehavior.cs
- QuerySettings.cs
- Memoizer.cs
- DeleteBookmarkScope.cs
- Triplet.cs
- SchemaMerger.cs
- GeneralTransformGroup.cs
- ServiceDescriptions.cs
- DbConnectionPoolIdentity.cs
- ParameterReplacerVisitor.cs
- DesignerCommandSet.cs
- WindowsProgressbar.cs
- SchemaTableOptionalColumn.cs
- Int32AnimationUsingKeyFrames.cs
- ToolStripItemEventArgs.cs
- DiagnosticsElement.cs
- ProcessManager.cs
- MergeFailedEvent.cs
- XmlParserContext.cs
- NameValueConfigurationElement.cs
- FieldTemplateFactory.cs
- FormCollection.cs
- HttpHandlerActionCollection.cs
- FileLogRecord.cs
- RemoteWebConfigurationHost.cs
- JavaScriptSerializer.cs
- WorkflowOperationContext.cs
- ColumnReorderedEventArgs.cs
- XMLSchema.cs
- SqlDependencyUtils.cs
- XPathNode.cs
- DataGridViewComboBoxCell.cs
- DockPattern.cs
- WebPartConnectionCollection.cs
- ClosableStream.cs
- ObjectDesignerDataSourceView.cs
- LinqDataSource.cs
- HtmlForm.cs
- EntityContainer.cs
- SoundPlayerAction.cs
- PackagePart.cs
- HScrollProperties.cs
- XamlClipboardData.cs
- QuaternionAnimation.cs
- DecimalKeyFrameCollection.cs
- DbExpressionBuilder.cs
- KnownIds.cs
- Journal.cs
- SerializableAttribute.cs
- KoreanLunisolarCalendar.cs
- TransformCryptoHandle.cs
- WebPartsSection.cs
- CssTextWriter.cs
- XmlCharCheckingReader.cs