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
- PartitionResolver.cs
- KoreanLunisolarCalendar.cs
- WpfXamlMember.cs
- SizeAnimationClockResource.cs
- XPathAncestorQuery.cs
- RangeValidator.cs
- FileNotFoundException.cs
- GroupByExpressionRewriter.cs
- RtfFormatStack.cs
- ControlParser.cs
- DoubleCollection.cs
- CharUnicodeInfo.cs
- GridViewColumnCollectionChangedEventArgs.cs
- MetadataPropertyAttribute.cs
- X509Certificate.cs
- Identity.cs
- XmlDocumentSchema.cs
- SQLStringStorage.cs
- XmlNode.cs
- TextEditorParagraphs.cs
- RightsManagementEncryptedStream.cs
- MobileUITypeEditor.cs
- MsmqProcessProtocolHandler.cs
- CollectionDataContractAttribute.cs
- SortKey.cs
- CheckBoxStandardAdapter.cs
- MetadataSerializer.cs
- ActivatableWorkflowsQueryResult.cs
- InputProviderSite.cs
- CompressStream.cs
- ADMembershipProvider.cs
- FormCollection.cs
- ConversionContext.cs
- ControlCollection.cs
- DbCommandDefinition.cs
- AlphaSortedEnumConverter.cs
- HostingEnvironment.cs
- CollectionConverter.cs
- FrameworkTextComposition.cs
- LeaseManager.cs
- ExcCanonicalXml.cs
- ProcessHostMapPath.cs
- FixedSOMTableRow.cs
- Base64Encoder.cs
- FilteredXmlReader.cs
- Vector.cs
- NavigatorOutput.cs
- WebPartMovingEventArgs.cs
- GeometryDrawing.cs
- BindUriHelper.cs
- PasswordPropertyTextAttribute.cs
- AsmxEndpointPickerExtension.cs
- ConfigurationLocation.cs
- Label.cs
- ToolStripDropDownClosingEventArgs.cs
- latinshape.cs
- milrender.cs
- ListBoxItemAutomationPeer.cs
- UriParserTemplates.cs
- BufferModeSettings.cs
- QueryReaderSettings.cs
- safex509handles.cs
- StateChangeEvent.cs
- RequestStatusBarUpdateEventArgs.cs
- AVElementHelper.cs
- Object.cs
- TextRange.cs
- MasterPage.cs
- SymbolMethod.cs
- TakeQueryOptionExpression.cs
- WSFederationHttpBindingCollectionElement.cs
- TransactionChannelListener.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- IndentTextWriter.cs
- xmlglyphRunInfo.cs
- DataBindingCollection.cs
- ObjectResult.cs
- BypassElement.cs
- Error.cs
- JsonStringDataContract.cs
- DocComment.cs
- FixedDocumentSequencePaginator.cs
- SerializationInfoEnumerator.cs
- CodeMemberField.cs
- CalendarButton.cs
- TypeGeneratedEventArgs.cs
- EntryIndex.cs
- SHA256Managed.cs
- HttpFileCollection.cs
- AutoResizedEvent.cs
- ButtonRenderer.cs
- JournalEntry.cs
- TextUtf8RawTextWriter.cs
- SqlTriggerContext.cs
- DynamicExpression.cs
- ErrorReporting.cs
- ElapsedEventArgs.cs
- SqlFacetAttribute.cs
- EncoderExceptionFallback.cs
- ScrollItemPattern.cs