Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Serialization / XmlAttributeOverrides.cs / 1305376 / XmlAttributeOverrides.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 XmlAttributeOverrides {
Hashtable types = new Hashtable();
///
///
/// [To be supplied.]
///
public void Add(Type type, XmlAttributes attributes) {
Add(type, string.Empty, attributes);
}
///
///
/// [To be supplied.]
///
public void Add(Type type, string member, XmlAttributes 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.XmlAttributeSetAgain, type.FullName, member));
}
members.Add(member, attributes);
}
///
///
/// [To be supplied.]
///
public XmlAttributes this[Type type] {
get {
return this[type, string.Empty];
}
}
///
///
/// [To be supplied.]
///
public XmlAttributes this[Type type, string member] {
get {
Hashtable members = (Hashtable)types[type];
if (members == null) return null;
return (XmlAttributes)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 XmlAttributeOverrides {
Hashtable types = new Hashtable();
///
///
/// [To be supplied.]
///
public void Add(Type type, XmlAttributes attributes) {
Add(type, string.Empty, attributes);
}
///
///
/// [To be supplied.]
///
public void Add(Type type, string member, XmlAttributes 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.XmlAttributeSetAgain, type.FullName, member));
}
members.Add(member, attributes);
}
///
///
/// [To be supplied.]
///
public XmlAttributes this[Type type] {
get {
return this[type, string.Empty];
}
}
///
///
/// [To be supplied.]
///
public XmlAttributes this[Type type, string member] {
get {
Hashtable members = (Hashtable)types[type];
if (members == null) return null;
return (XmlAttributes)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
- FontStyleConverter.cs
- DigestComparer.cs
- AssemblyCollection.cs
- DataGridCheckBoxColumn.cs
- FixedSOMLineRanges.cs
- BinaryKeyIdentifierClause.cs
- ProcessModelInfo.cs
- ErrorActivity.cs
- RenderData.cs
- X509ChainElement.cs
- ServerIdentity.cs
- TableAutomationPeer.cs
- ExtractorMetadata.cs
- FileVersionInfo.cs
- CodeGenerator.cs
- XMLDiffLoader.cs
- WebPartUserCapability.cs
- ProjectionPlanCompiler.cs
- ReflectPropertyDescriptor.cs
- UnsafeNativeMethods.cs
- QilInvokeLateBound.cs
- DesignTable.cs
- ConfigXmlReader.cs
- DetailsViewModeEventArgs.cs
- WhileDesigner.cs
- TemplateControlBuildProvider.cs
- TextFormatter.cs
- RawKeyboardInputReport.cs
- ListParagraph.cs
- TempFiles.cs
- querybuilder.cs
- EmbeddedMailObjectsCollection.cs
- LinearKeyFrames.cs
- Selection.cs
- XmlNode.cs
- CompletionBookmark.cs
- XmlRootAttribute.cs
- CodeDirectionExpression.cs
- LinqDataSourceEditData.cs
- WebServiceAttribute.cs
- AtomContentProperty.cs
- BinHexEncoder.cs
- ConfigsHelper.cs
- CrossContextChannel.cs
- DefaultValueAttribute.cs
- documentation.cs
- TableItemProviderWrapper.cs
- QuerySetOp.cs
- WindowsRegion.cs
- _WinHttpWebProxyDataBuilder.cs
- IPipelineRuntime.cs
- Asn1Utilities.cs
- X509CertificateChain.cs
- UserNameServiceElement.cs
- TextChange.cs
- PersonalizableTypeEntry.cs
- LazyTextWriterCreator.cs
- FormViewDeleteEventArgs.cs
- OracleCommandSet.cs
- DispatcherOperation.cs
- Codec.cs
- XmlSerializationWriter.cs
- HostProtectionPermission.cs
- EdmMember.cs
- StaticFileHandler.cs
- TextBlockAutomationPeer.cs
- WebConfigManager.cs
- SequenceDesigner.cs
- SQLRoleProvider.cs
- TrustLevelCollection.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- ModuleBuilder.cs
- MethodBuilderInstantiation.cs
- EventRoute.cs
- TcpTransportManager.cs
- Preprocessor.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- TypeSystemProvider.cs
- ConfigurationManagerHelper.cs
- SchemaObjectWriter.cs
- HttpCookiesSection.cs
- DataServiceHostFactory.cs
- MenuItem.cs
- DataSvcMapFile.cs
- SQLCharsStorage.cs
- BufferBuilder.cs
- DataAccessor.cs
- BitmapMetadataEnumerator.cs
- MatrixCamera.cs
- WhitespaceRuleReader.cs
- WbmpConverter.cs
- httpapplicationstate.cs
- XmlIgnoreAttribute.cs
- ToolStripItemImageRenderEventArgs.cs
- DocumentPage.cs
- CloudCollection.cs
- EntityStoreSchemaFilterEntry.cs
- DataGridState.cs
- SignedXml.cs
- SQLGuid.cs