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
- SecurityTokenAuthenticator.cs
- EmptyControlCollection.cs
- ProxyHwnd.cs
- XmlSchemaAttributeGroupRef.cs
- CalendarTable.cs
- Vector3DCollectionValueSerializer.cs
- RegistryConfigurationProvider.cs
- Operand.cs
- TextDocumentView.cs
- SecurityException.cs
- ComplexPropertyEntry.cs
- OdbcRowUpdatingEvent.cs
- HMAC.cs
- TypeConverterAttribute.cs
- TemplateBindingExtension.cs
- EdmEntityTypeAttribute.cs
- NamespaceList.cs
- PasswordTextNavigator.cs
- FacetEnabledSchemaElement.cs
- HtmlInputPassword.cs
- PointConverter.cs
- LineServicesRun.cs
- HostingEnvironmentWrapper.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- SeverityFilter.cs
- InvalidDataException.cs
- DocumentPageView.cs
- Duration.cs
- ObjectListCommand.cs
- DoWorkEventArgs.cs
- XmlDataImplementation.cs
- FlowDocumentReader.cs
- ProvidersHelper.cs
- Membership.cs
- ExpressionParser.cs
- DataGridAutoFormat.cs
- AQNBuilder.cs
- UnwrappedTypesXmlSerializerManager.cs
- ForAllOperator.cs
- Roles.cs
- ProtocolElementCollection.cs
- SemanticResultValue.cs
- HtmlMeta.cs
- Point4DConverter.cs
- OpenTypeCommon.cs
- TextEditor.cs
- TraceSource.cs
- XPathChildIterator.cs
- DocumentApplication.cs
- X509CertificateTrustedIssuerElement.cs
- DataGridColumnCollectionEditor.cs
- SimpleTextLine.cs
- LocatorPart.cs
- Point4DValueSerializer.cs
- WebRequestModuleElementCollection.cs
- Keyboard.cs
- LabelDesigner.cs
- DeviceContexts.cs
- EmptyControlCollection.cs
- SqlBulkCopyColumnMappingCollection.cs
- ProcessModelInfo.cs
- Maps.cs
- ServiceSettingsResponseInfo.cs
- RegexMatch.cs
- GenericUriParser.cs
- DataSourceXmlElementAttribute.cs
- MergeLocalizationDirectives.cs
- ImmutableObjectAttribute.cs
- HyperLink.cs
- AuthenticationException.cs
- UnsafeMethods.cs
- XmlValidatingReader.cs
- StringStorage.cs
- BindingManagerDataErrorEventArgs.cs
- FileLevelControlBuilderAttribute.cs
- _ListenerRequestStream.cs
- TemplatePropertyEntry.cs
- NameTable.cs
- ExpressionBuilderCollection.cs
- HideDisabledControlAdapter.cs
- CreateUserWizardAutoFormat.cs
- DebugView.cs
- GlobalizationSection.cs
- DbExpressionVisitor.cs
- Int16Animation.cs
- CodeParameterDeclarationExpression.cs
- CodePageUtils.cs
- ByteAnimationBase.cs
- EdmConstants.cs
- XmlSchemaProviderAttribute.cs
- GrammarBuilder.cs
- ConfigurationValues.cs
- MD5.cs
- IdentitySection.cs
- Condition.cs
- Event.cs
- UnsafeNativeMethods.cs
- ParameterReplacerVisitor.cs
- Transaction.cs
- SubMenuStyleCollection.cs