Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PrintPreviewDialog.cs
- ADMembershipProvider.cs
- BamlRecordReader.cs
- InternalBufferOverflowException.cs
- ColorConverter.cs
- PropertyTabAttribute.cs
- StateManagedCollection.cs
- SessionPageStateSection.cs
- BinaryFormatterWriter.cs
- WebPartDeleteVerb.cs
- ExpressionEvaluator.cs
- WebPartActionVerb.cs
- ValidationPropertyAttribute.cs
- HwndHostAutomationPeer.cs
- XAMLParseException.cs
- BitmapEncoder.cs
- ComPlusDiagnosticTraceSchemas.cs
- PagedDataSource.cs
- UrlMappingCollection.cs
- LinqDataSourceView.cs
- Vector3DCollection.cs
- SqlDataReaderSmi.cs
- WebBaseEventKeyComparer.cs
- ConnectionPoint.cs
- XmlSchemaSimpleContentExtension.cs
- ArraySegment.cs
- XmlWrappingReader.cs
- SchemaObjectWriter.cs
- SimpleHandlerBuildProvider.cs
- ListBoxAutomationPeer.cs
- Label.cs
- SqlNode.cs
- XdrBuilder.cs
- PointConverter.cs
- ParameterModifier.cs
- TextOptions.cs
- PrtTicket_Base.cs
- InvalidCommandTreeException.cs
- SerializeAbsoluteContext.cs
- TimelineGroup.cs
- SecureStringHasher.cs
- IApplicationTrustManager.cs
- NotifyParentPropertyAttribute.cs
- OrderingExpression.cs
- ObjectDataSourceMethodEventArgs.cs
- ServiceEndpointElementCollection.cs
- EmptyStringExpandableObjectConverter.cs
- SendSecurityHeader.cs
- ActionFrame.cs
- AccessText.cs
- MessageEventSubscriptionService.cs
- UIElementCollection.cs
- MultilineStringConverter.cs
- Camera.cs
- hresults.cs
- XmlResolver.cs
- DesignerEditorPartChrome.cs
- StagingAreaInputItem.cs
- Encoding.cs
- NativeMethods.cs
- StyleHelper.cs
- XPathScanner.cs
- RecognizedPhrase.cs
- PointCollection.cs
- PrintingPermissionAttribute.cs
- DetailsViewDeletedEventArgs.cs
- BindingCollectionElement.cs
- XmlSchemaType.cs
- ClientSettingsSection.cs
- ToolBarTray.cs
- BeginStoryboard.cs
- ScriptControlDescriptor.cs
- ColumnWidthChangingEvent.cs
- SystemIPv4InterfaceProperties.cs
- DateTimeFormatInfo.cs
- FormClosedEvent.cs
- WindowsSlider.cs
- ToolStripRendererSwitcher.cs
- MSAAWinEventWrap.cs
- SqlInfoMessageEvent.cs
- ShapeTypeface.cs
- LayoutTable.cs
- MultipleViewProviderWrapper.cs
- GifBitmapEncoder.cs
- SqlDataSourceFilteringEventArgs.cs
- ReceiveActivityDesigner.cs
- RequiredAttributeAttribute.cs
- RequestBringIntoViewEventArgs.cs
- QueryableDataSourceView.cs
- MembershipPasswordException.cs
- X500Name.cs
- ReceiveSecurityHeaderElementManager.cs
- IsolatedStorage.cs
- TcpClientChannel.cs
- HWStack.cs
- TrustLevel.cs
- XmlAnyElementAttributes.cs
- EmbossBitmapEffect.cs
- InstanceCreationEditor.cs
- SyndicationFeedFormatter.cs