Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ObjectCloneHelper.cs
- OutputBuffer.cs
- TrackingStringDictionary.cs
- ReachSerializationCacheItems.cs
- XmlSiteMapProvider.cs
- RemoveStoryboard.cs
- PrintDocument.cs
- WriterOutput.cs
- XPathSelectionIterator.cs
- StartUpEventArgs.cs
- ListViewCommandEventArgs.cs
- FontInfo.cs
- GridViewDeletedEventArgs.cs
- DictionaryMarkupSerializer.cs
- AbstractSvcMapFileLoader.cs
- CompoundFileReference.cs
- TCEAdapterGenerator.cs
- BufferAllocator.cs
- XsltFunctions.cs
- PropertyDescriptor.cs
- WebDescriptionAttribute.cs
- Listbox.cs
- NetCodeGroup.cs
- WsrmFault.cs
- RegularExpressionValidator.cs
- ImplicitInputBrush.cs
- DataTableTypeConverter.cs
- IdentifierService.cs
- LogLogRecordHeader.cs
- XappLauncher.cs
- ContractComponent.cs
- NamespaceQuery.cs
- XhtmlStyleClass.cs
- MessagePartProtectionMode.cs
- WindowsSolidBrush.cs
- DemultiplexingClientMessageFormatter.cs
- PrintDialog.cs
- DataGridViewRow.cs
- DataObjectPastingEventArgs.cs
- TableCellAutomationPeer.cs
- DataMemberConverter.cs
- Hash.cs
- Filter.cs
- CompositionCommandSet.cs
- RenderData.cs
- HtmlControl.cs
- TransformerTypeCollection.cs
- LineGeometry.cs
- QilList.cs
- SQLGuidStorage.cs
- AsyncOperationLifetimeManager.cs
- CodeTypeMemberCollection.cs
- StringStorage.cs
- Form.cs
- WorkflowView.cs
- SignedPkcs7.cs
- MinMaxParagraphWidth.cs
- ObjectItemConventionAssemblyLoader.cs
- Unit.cs
- CodeConditionStatement.cs
- ObjectSpanRewriter.cs
- DateTimeSerializationSection.cs
- PocoPropertyAccessorStrategy.cs
- HoistedLocals.cs
- NameValueFileSectionHandler.cs
- SortedDictionary.cs
- PageParserFilter.cs
- InputBuffer.cs
- ScriptComponentDescriptor.cs
- SqlMethods.cs
- RegexInterpreter.cs
- RecognitionEventArgs.cs
- OleDbStruct.cs
- CompatibleIComparer.cs
- WebConfigurationManager.cs
- MetadataArtifactLoaderComposite.cs
- ReturnEventArgs.cs
- KeyValueSerializer.cs
- EventProxy.cs
- DataBoundControlActionList.cs
- UserControl.cs
- DBAsyncResult.cs
- XmlTextReader.cs
- PartialCachingAttribute.cs
- DataGridViewCellCollection.cs
- HttpProtocolReflector.cs
- ActivityCodeDomSerializationManager.cs
- XslTransform.cs
- XmlReaderSettings.cs
- LinqDataSourceDeleteEventArgs.cs
- SubMenuStyle.cs
- SubclassTypeValidatorAttribute.cs
- SecurityCriticalDataForSet.cs
- NameValueConfigurationElement.cs
- QueryCacheKey.cs
- TextDocumentView.cs
- ProcessModule.cs
- PathNode.cs
- DataSourceHelper.cs
- UpdateCommandGenerator.cs