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
- WebPartConnectionsDisconnectVerb.cs
- ModuleBuilder.cs
- dataobject.cs
- SafeNativeMethods.cs
- LastQueryOperator.cs
- COM2PropertyDescriptor.cs
- SimpleWorkerRequest.cs
- hebrewshape.cs
- GroupBoxRenderer.cs
- StackBuilderSink.cs
- DetailsViewPagerRow.cs
- XmlSortKeyAccumulator.cs
- ScriptDescriptor.cs
- UInt64Storage.cs
- XmlSchemaInfo.cs
- BuildDependencySet.cs
- ToolboxComponentsCreatedEventArgs.cs
- RemoteWebConfigurationHost.cs
- WindowsAuthenticationEventArgs.cs
- XmlDictionaryReader.cs
- TextDecorationCollection.cs
- SupportsEventValidationAttribute.cs
- RelationshipEndCollection.cs
- OptimizerPatterns.cs
- SmtpMail.cs
- Typeface.cs
- RadioButtonBaseAdapter.cs
- ImportException.cs
- WebPartDisplayModeEventArgs.cs
- SvcMapFileSerializer.cs
- UInt64.cs
- NumericUpDownAcceleration.cs
- KnownBoxes.cs
- Frame.cs
- DateTime.cs
- ColumnMapCopier.cs
- CleanUpVirtualizedItemEventArgs.cs
- XPathNavigator.cs
- StyleSheetDesigner.cs
- ViewCellRelation.cs
- ResourceLoader.cs
- TypeNameHelper.cs
- CrossAppDomainChannel.cs
- LayoutTableCell.cs
- EncryptedXml.cs
- InvalidOperationException.cs
- EntityCommandDefinition.cs
- PlainXmlWriter.cs
- Win32KeyboardDevice.cs
- ApplicationServicesHostFactory.cs
- ScrollItemProviderWrapper.cs
- TypeUsageBuilder.cs
- VectorAnimationUsingKeyFrames.cs
- WaitHandleCannotBeOpenedException.cs
- Soap.cs
- OptimalTextSource.cs
- MouseCaptureWithinProperty.cs
- ApplicationDirectoryMembershipCondition.cs
- MetaTableHelper.cs
- SchemaTableOptionalColumn.cs
- NameScope.cs
- XslNumber.cs
- InvalidDataException.cs
- VisualProxy.cs
- XsltLoader.cs
- ItemAutomationPeer.cs
- Constraint.cs
- NoneExcludedImageIndexConverter.cs
- EventToken.cs
- ErrorReporting.cs
- MetadataItemEmitter.cs
- XmlBinaryReader.cs
- DataPager.cs
- DependentList.cs
- WebPartZoneAutoFormat.cs
- SiteMapNodeCollection.cs
- ListViewTableCell.cs
- ComNativeDescriptor.cs
- XmlSchemaAnyAttribute.cs
- GenericPrincipal.cs
- FilterEventArgs.cs
- EntityCommand.cs
- CheckBox.cs
- StateMachine.cs
- _ConnectionGroup.cs
- ScrollBarRenderer.cs
- StylusButtonCollection.cs
- XmlSchemaAll.cs
- latinshape.cs
- JournalEntry.cs
- TableParaClient.cs
- SystemIcmpV4Statistics.cs
- HttpApplication.cs
- ActivityDelegate.cs
- NoneExcludedImageIndexConverter.cs
- Dynamic.cs
- PersonalizationProviderHelper.cs
- DefaultDiscoveryServiceExtension.cs
- FormViewUpdatedEventArgs.cs
- RuleProcessor.cs