Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Serialization / XmlAttributeOverrides.cs / 1305376 / 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
- LogSwitch.cs
- WmlObjectListAdapter.cs
- JsonStringDataContract.cs
- AppSettingsExpressionBuilder.cs
- LowerCaseStringConverter.cs
- TileBrush.cs
- DeferredBinaryDeserializerExtension.cs
- ProtocolsSection.cs
- CorrelationToken.cs
- DodSequenceMerge.cs
- MergeLocalizationDirectives.cs
- Tracking.cs
- SqlXml.cs
- TraceData.cs
- PathSegmentCollection.cs
- DataGridViewMethods.cs
- NavigatingCancelEventArgs.cs
- GeometryHitTestResult.cs
- AnonymousIdentificationSection.cs
- GestureRecognitionResult.cs
- Predicate.cs
- XmlSignificantWhitespace.cs
- PathStreamGeometryContext.cs
- TextEditorParagraphs.cs
- UrlMapping.cs
- CustomCategoryAttribute.cs
- SqlClientWrapperSmiStream.cs
- MessagePropertyDescription.cs
- CodeArgumentReferenceExpression.cs
- AffineTransform3D.cs
- FixedDocumentSequencePaginator.cs
- DesignSurfaceManager.cs
- StdValidatorsAndConverters.cs
- ActivityBuilder.cs
- StorageMappingFragment.cs
- RunInstallerAttribute.cs
- ViewGenerator.cs
- TcpHostedTransportConfiguration.cs
- SegmentTree.cs
- counter.cs
- XPathAncestorQuery.cs
- DateBoldEvent.cs
- AppLevelCompilationSectionCache.cs
- StringFunctions.cs
- IDQuery.cs
- BitmapEffectDrawing.cs
- ProvidersHelper.cs
- RenderTargetBitmap.cs
- EdmValidator.cs
- ToolStripComboBox.cs
- DoubleAnimationUsingPath.cs
- ShaperBuffers.cs
- BitmapEffectGroup.cs
- LookupNode.cs
- ReceiveMessageAndVerifySecurityAsyncResultBase.cs
- HttpModuleCollection.cs
- SecUtil.cs
- TextBox.cs
- HierarchicalDataBoundControl.cs
- XmlEncodedRawTextWriter.cs
- AuthenticationService.cs
- BitmapEffectInput.cs
- PasswordPropertyTextAttribute.cs
- InstalledVoice.cs
- SyntaxCheck.cs
- GridViewDeletedEventArgs.cs
- XsltSettings.cs
- EncoderExceptionFallback.cs
- SqlRewriteScalarSubqueries.cs
- DbReferenceCollection.cs
- CurrencyManager.cs
- Win32PrintDialog.cs
- MarkupCompilePass1.cs
- FileDetails.cs
- LabelLiteral.cs
- RadioButtonRenderer.cs
- EtwTrackingBehaviorElement.cs
- SweepDirectionValidation.cs
- HttpInputStream.cs
- HttpPostedFile.cs
- basecomparevalidator.cs
- TableRow.cs
- PageStatePersister.cs
- basenumberconverter.cs
- TempFiles.cs
- FontDifferentiator.cs
- ExpressionReplacer.cs
- Camera.cs
- TextEndOfLine.cs
- NativeMethods.cs
- OutputCacheSection.cs
- HtmlMeta.cs
- DrawingServices.cs
- xmlfixedPageInfo.cs
- IndividualDeviceConfig.cs
- FtpCachePolicyElement.cs
- FormViewInsertedEventArgs.cs
- UserValidatedEventArgs.cs
- FlowNode.cs
- Rijndael.cs