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
- Compress.cs
- BaseCollection.cs
- RC2CryptoServiceProvider.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- _SpnDictionary.cs
- HashHelpers.cs
- DBSchemaTable.cs
- ValueConversionAttribute.cs
- PageVisual.cs
- MenuBindingsEditorForm.cs
- VarRemapper.cs
- SafeLibraryHandle.cs
- Decoder.cs
- Configuration.cs
- CodeMethodReturnStatement.cs
- SmtpReplyReaderFactory.cs
- StdValidatorsAndConverters.cs
- IndexerNameAttribute.cs
- ObjectIDGenerator.cs
- DataControlLinkButton.cs
- ToolStripItemCollection.cs
- ResXResourceSet.cs
- MetadataArtifactLoaderResource.cs
- DependencyPropertyValueSerializer.cs
- Binding.cs
- VScrollBar.cs
- PublishLicense.cs
- Graph.cs
- SessionStateItemCollection.cs
- GenerateTemporaryTargetAssembly.cs
- SqlFunctionAttribute.cs
- InputLangChangeEvent.cs
- GetResponse.cs
- DeploymentSection.cs
- ReferencedType.cs
- FormViewDeletedEventArgs.cs
- HtmlTitle.cs
- EdmFunction.cs
- TraceInternal.cs
- NullReferenceException.cs
- BamlTreeMap.cs
- DelegateBodyWriter.cs
- RawStylusInputCustomDataList.cs
- PartDesigner.cs
- ApplyTemplatesAction.cs
- _BufferOffsetSize.cs
- HttpResponseInternalWrapper.cs
- FileSecurity.cs
- StylusPointDescription.cs
- PageAdapter.cs
- UseAttributeSetsAction.cs
- DoubleAnimationUsingKeyFrames.cs
- MasterPage.cs
- Rfc4050KeyFormatter.cs
- Dispatcher.cs
- ComponentManagerBroker.cs
- KeyNotFoundException.cs
- RemoteHelper.cs
- PersistenceTypeAttribute.cs
- IisTraceWebEventProvider.cs
- ListMarkerSourceInfo.cs
- XmlUtilWriter.cs
- TextWriter.cs
- OdbcError.cs
- Automation.cs
- Util.cs
- ActivityValidator.cs
- WorkflowRequestContext.cs
- ReceiveActivityDesignerTheme.cs
- RegionData.cs
- ClientRolePrincipal.cs
- Vector3DAnimation.cs
- WindowsToolbar.cs
- KnowledgeBase.cs
- Math.cs
- DeflateStream.cs
- DataGridViewRowHeaderCell.cs
- DataGridViewSelectedColumnCollection.cs
- ComplexBindingPropertiesAttribute.cs
- MiniConstructorInfo.cs
- OdbcPermission.cs
- HandleExceptionArgs.cs
- TrustManagerPromptUI.cs
- WebPartCancelEventArgs.cs
- IPipelineRuntime.cs
- EventProviderBase.cs
- ChineseLunisolarCalendar.cs
- AsyncResult.cs
- CaseInsensitiveHashCodeProvider.cs
- ProviderConnectionPointCollection.cs
- TaskResultSetter.cs
- TypeConverter.cs
- DataIdProcessor.cs
- OdbcTransaction.cs
- SafeViewOfFileHandle.cs
- HtmlPageAdapter.cs
- WebPartTransformerCollection.cs
- CachingParameterInspector.cs
- HttpHandlersSection.cs
- JulianCalendar.cs