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
- Pair.cs
- _SingleItemRequestCache.cs
- ArraySortHelper.cs
- Int64.cs
- ProfileManager.cs
- TextServicesManager.cs
- COM2ExtendedTypeConverter.cs
- ListViewTableCell.cs
- FullTextState.cs
- DefaultPrintController.cs
- ControlBuilderAttribute.cs
- RenamedEventArgs.cs
- ListViewInsertionMark.cs
- KeyGestureValueSerializer.cs
- OleDbConnection.cs
- HMAC.cs
- EntitySqlQueryState.cs
- ApplicationDirectoryMembershipCondition.cs
- TraceHelpers.cs
- CallbackValidatorAttribute.cs
- SqlCrossApplyToCrossJoin.cs
- DESCryptoServiceProvider.cs
- ConstructorNeedsTagAttribute.cs
- WebPartDescription.cs
- TabControlAutomationPeer.cs
- DependencyObjectPropertyDescriptor.cs
- TextElementEditingBehaviorAttribute.cs
- Funcletizer.cs
- DropTarget.cs
- FormsAuthenticationCredentials.cs
- Paragraph.cs
- RequestCachingSection.cs
- UInt32.cs
- Region.cs
- ContainerParaClient.cs
- SoapHelper.cs
- VSWCFServiceContractGenerator.cs
- IndexedString.cs
- ScriptManager.cs
- SoapAttributeOverrides.cs
- CodeAccessPermission.cs
- x509store.cs
- ItemCollection.cs
- DbParameterCollectionHelper.cs
- FormsIdentity.cs
- XmlSchemaExternal.cs
- DrawingContextWalker.cs
- TreeIterator.cs
- PropertyGeneratedEventArgs.cs
- EmbeddedMailObject.cs
- DataGridViewAdvancedBorderStyle.cs
- Math.cs
- TaiwanLunisolarCalendar.cs
- RowUpdatingEventArgs.cs
- TextEditorLists.cs
- XpsSerializationManagerAsync.cs
- ColumnMapVisitor.cs
- HighContrastHelper.cs
- PostBackTrigger.cs
- OleAutBinder.cs
- _PooledStream.cs
- BookmarkScopeInfo.cs
- IgnoreFlushAndCloseStream.cs
- SerialPinChanges.cs
- BinaryObjectReader.cs
- RijndaelManagedTransform.cs
- PublisherIdentityPermission.cs
- MatrixUtil.cs
- StructuredCompositeActivityDesigner.cs
- Decoder.cs
- ApplicationBuildProvider.cs
- RuleSet.cs
- ResizeGrip.cs
- BlobPersonalizationState.cs
- XmlSchemaAll.cs
- ProfileProvider.cs
- QueryResultOp.cs
- ResponseStream.cs
- IChannel.cs
- SignedXmlDebugLog.cs
- GeometryCombineModeValidation.cs
- DataTable.cs
- SafeBitVector32.cs
- DataGridViewImageCell.cs
- HMACMD5.cs
- Activator.cs
- InkCanvas.cs
- ProfileEventArgs.cs
- SourceLocation.cs
- BackEase.cs
- TextTreeUndo.cs
- CommandManager.cs
- UTF8Encoding.cs
- EdmValidator.cs
- PeerServiceMessageContracts.cs
- PeerContact.cs
- ButtonStandardAdapter.cs
- WindowsIdentity.cs
- GPPOINT.cs
- AppDomainAttributes.cs