Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- LineUtil.cs
- MemberProjectedSlot.cs
- EFAssociationProvider.cs
- X509CertificateTokenFactoryCredential.cs
- TableAdapterManagerGenerator.cs
- MILUtilities.cs
- ContractUtils.cs
- AuthenticationModuleElementCollection.cs
- StaticFileHandler.cs
- RowUpdatingEventArgs.cs
- ProxyHwnd.cs
- SerializerWriterEventHandlers.cs
- InputScopeManager.cs
- X509CertificateCollection.cs
- File.cs
- ChineseLunisolarCalendar.cs
- MetafileEditor.cs
- StringDictionary.cs
- FileInfo.cs
- ContentFileHelper.cs
- ClientUrlResolverWrapper.cs
- DecoderBestFitFallback.cs
- TextEndOfLine.cs
- ContentPlaceHolder.cs
- ValueType.cs
- TextContainerChangedEventArgs.cs
- WebPartUserCapability.cs
- CFStream.cs
- ResourceProviderFactory.cs
- EnterpriseServicesHelper.cs
- FormClosingEvent.cs
- cookiecontainer.cs
- mediaclock.cs
- AsyncCompletedEventArgs.cs
- AssemblyName.cs
- StylusPointProperty.cs
- InkPresenter.cs
- SimpleFileLog.cs
- Group.cs
- EditingCoordinator.cs
- MonitorWrapper.cs
- SourceElementsCollection.cs
- DummyDataSource.cs
- QueueSurrogate.cs
- CodeTypeOfExpression.cs
- CngUIPolicy.cs
- HandlerFactoryCache.cs
- DesignerListAdapter.cs
- XmlComment.cs
- XmlAttributeHolder.cs
- CaseInsensitiveOrdinalStringComparer.cs
- XPathNode.cs
- SessionEndedEventArgs.cs
- DocumentGrid.cs
- ContentTextAutomationPeer.cs
- ViewBox.cs
- TextDocumentView.cs
- Stack.cs
- ManagementObject.cs
- Operator.cs
- IssuedTokenClientElement.cs
- ProgressBarAutomationPeer.cs
- FontConverter.cs
- BaseParaClient.cs
- GeometryHitTestResult.cs
- SQLMoney.cs
- documentsequencetextview.cs
- DocumentGridContextMenu.cs
- MoveSizeWinEventHandler.cs
- FactorySettingsElement.cs
- SecurityChannelListener.cs
- AuthorizationSection.cs
- CapabilitiesSection.cs
- ScriptServiceAttribute.cs
- XPathExpr.cs
- RegistrySecurity.cs
- WebRequest.cs
- UIElementPropertyUndoUnit.cs
- DesignerProperties.cs
- HostingEnvironment.cs
- EdmItemError.cs
- SharedConnectionWorkflowTransactionService.cs
- ProcessHostMapPath.cs
- StateItem.cs
- MembershipSection.cs
- HotSpotCollection.cs
- InsufficientMemoryException.cs
- FormsAuthenticationCredentials.cs
- JsonSerializer.cs
- UnsafePeerToPeerMethods.cs
- UIElement3D.cs
- ViewStateChangedEventArgs.cs
- XmlSchemaSimpleContentRestriction.cs
- ThreadExceptionEvent.cs
- Classification.cs
- WebPartVerbsEventArgs.cs
- CodeCompiler.cs
- ComboBoxRenderer.cs
- HttpRequestBase.cs
- ArithmeticException.cs