Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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
- FormViewModeEventArgs.cs
- HttpRequest.cs
- ParsedAttributeCollection.cs
- ExpressionList.cs
- CharStorage.cs
- MachineKey.cs
- HtmlForm.cs
- X509CertificateStore.cs
- ControlPaint.cs
- RandomNumberGenerator.cs
- FormsIdentity.cs
- MachineKeyConverter.cs
- FontWeightConverter.cs
- IdleTimeoutMonitor.cs
- TypeSource.cs
- OnOperation.cs
- WindowsListViewSubItem.cs
- PackageRelationshipCollection.cs
- IItemProperties.cs
- SupportsEventValidationAttribute.cs
- XamlTemplateSerializer.cs
- ConfigsHelper.cs
- CategoryGridEntry.cs
- Effect.cs
- IntAverageAggregationOperator.cs
- ListViewUpdatedEventArgs.cs
- RemotingConfiguration.cs
- BitmapEffectvisualstate.cs
- ProtocolViolationException.cs
- RegexFCD.cs
- IfAction.cs
- Int16.cs
- GeneralTransform.cs
- SQLInt64.cs
- LoginUtil.cs
- PathFigure.cs
- UnmanagedBitmapWrapper.cs
- SqlNotificationRequest.cs
- DataGridViewCellEventArgs.cs
- StyleHelper.cs
- HiddenField.cs
- sitestring.cs
- RecordManager.cs
- ArrayList.cs
- TreeViewImageKeyConverter.cs
- FormsAuthenticationUserCollection.cs
- BCLDebug.cs
- RegexCompiler.cs
- _Semaphore.cs
- WebPartAuthorizationEventArgs.cs
- ObjectKeyFrameCollection.cs
- TableRowCollection.cs
- MailAddress.cs
- _IPv4Address.cs
- HtmlTextArea.cs
- NumberFunctions.cs
- XmlSchemaSimpleContent.cs
- SQLBinary.cs
- TabControl.cs
- Nullable.cs
- Identity.cs
- Visual3D.cs
- FunctionCommandText.cs
- FileRecordSequenceCompletedAsyncResult.cs
- TraceInternal.cs
- MatrixCamera.cs
- PartitionedDataSource.cs
- TargetConverter.cs
- CompareValidator.cs
- WebPartAuthorizationEventArgs.cs
- NullRuntimeConfig.cs
- RTLAwareMessageBox.cs
- NullToBooleanConverter.cs
- SqlMethodAttribute.cs
- EditorZoneBase.cs
- XmlAnyElementAttributes.cs
- Keyboard.cs
- EndpointIdentityConverter.cs
- TextCompositionManager.cs
- EdmProperty.cs
- RuntimeConfigurationRecord.cs
- MediaEntryAttribute.cs
- MailMessage.cs
- LambdaCompiler.Unary.cs
- UnknownWrapper.cs
- Pkcs7Recipient.cs
- ComponentCollection.cs
- NetworkInformationException.cs
- MeasurementDCInfo.cs
- ClientTargetSection.cs
- NonClientArea.cs
- PrintingPermission.cs
- SQLGuid.cs
- ComponentResourceKeyConverter.cs
- GatewayDefinition.cs
- BoundField.cs
- DecoderReplacementFallback.cs
- StandardCommands.cs
- XmlSubtreeReader.cs
- DefaultPropertyAttribute.cs