Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Xml / System / Xml / Serialization / XmlAttributeOverrides.cs / 1 / 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
- PrimitiveSchema.cs
- StretchValidation.cs
- ClientRuntimeConfig.cs
- TraceFilter.cs
- GridViewDeletedEventArgs.cs
- TileModeValidation.cs
- ExpressionValueEditor.cs
- PasswordRecovery.cs
- WindowInteropHelper.cs
- NotifyInputEventArgs.cs
- GridProviderWrapper.cs
- SecureUICommand.cs
- SynchronizationLockException.cs
- JoinGraph.cs
- StyleSheetRefUrlEditor.cs
- HostedTcpTransportManager.cs
- PageHandlerFactory.cs
- PtsContext.cs
- PropertyChangeTracker.cs
- WsdlBuildProvider.cs
- DataPagerField.cs
- ChannelCredentials.cs
- HttpConfigurationSystem.cs
- TextSegment.cs
- DataControlFieldHeaderCell.cs
- GradientBrush.cs
- PermissionSetTriple.cs
- XmlSchemaSequence.cs
- ComPersistableTypeElementCollection.cs
- DiagnosticEventProvider.cs
- LineServicesRun.cs
- XsdSchemaFileEditor.cs
- SupportingTokenSpecification.cs
- ScrollEvent.cs
- DrawingContext.cs
- MenuScrollingVisibilityConverter.cs
- DataGridViewTopLeftHeaderCell.cs
- PropertyEmitter.cs
- ProxyFragment.cs
- DuplicateWaitObjectException.cs
- UseLicense.cs
- Inline.cs
- WebResponse.cs
- SafeWaitHandle.cs
- DataSvcMapFileSerializer.cs
- EmptyReadOnlyDictionaryInternal.cs
- BorderSidesEditor.cs
- SHA1CryptoServiceProvider.cs
- CellTreeNode.cs
- ReflectEventDescriptor.cs
- CodeSubDirectoriesCollection.cs
- ObjectDataSourceEventArgs.cs
- XmlComplianceUtil.cs
- AppLevelCompilationSectionCache.cs
- XPathAncestorQuery.cs
- CallbackValidator.cs
- DataRowExtensions.cs
- BinHexDecoder.cs
- List.cs
- COM2ExtendedBrowsingHandler.cs
- EntityContainerAssociationSet.cs
- ContentControl.cs
- StateMachine.cs
- ViewLoader.cs
- CryptoApi.cs
- UriSection.cs
- AsyncSerializedWorker.cs
- DataGridViewTextBoxEditingControl.cs
- GridView.cs
- ExceptionRoutedEventArgs.cs
- CorrelationExtension.cs
- DataObjectEventArgs.cs
- WorkflowApplicationUnloadedException.cs
- PenThread.cs
- ImageConverter.cs
- XmlTextEncoder.cs
- DecimalKeyFrameCollection.cs
- WorkflowInlining.cs
- XmlSerializerAssemblyAttribute.cs
- Inflater.cs
- ObjectHandle.cs
- ViewSimplifier.cs
- DataContractJsonSerializer.cs
- XmlSchemaSimpleContentRestriction.cs
- PointCollection.cs
- TimeSpanSecondsConverter.cs
- DispatcherExceptionFilterEventArgs.cs
- ObjectViewQueryResultData.cs
- EpmSyndicationContentDeSerializer.cs
- Odbc32.cs
- TextTreeTextElementNode.cs
- MarkedHighlightComponent.cs
- XmlException.cs
- WriteableBitmap.cs
- PinnedBufferMemoryStream.cs
- OdbcConnectionFactory.cs
- KeyNotFoundException.cs
- NonParentingControl.cs
- GrammarBuilderWildcard.cs
- DashStyles.cs