Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; ////// /// 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.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DbDataReader.cs
- MetadataItemEmitter.cs
- ForeignConstraint.cs
- ExcludeFromCodeCoverageAttribute.cs
- ProjectionCamera.cs
- HtmlInputHidden.cs
- XamlBrushSerializer.cs
- Rect.cs
- TypeValidationEventArgs.cs
- WebScriptServiceHostFactory.cs
- ForeignConstraint.cs
- RequestCachePolicy.cs
- XmlSignificantWhitespace.cs
- Internal.cs
- XPathSingletonIterator.cs
- InstanceDescriptor.cs
- XPathAncestorQuery.cs
- AxImporter.cs
- CompoundFileReference.cs
- XmlReflectionImporter.cs
- COSERVERINFO.cs
- SchemaCollectionPreprocessor.cs
- AutoScrollHelper.cs
- XmlSchemaAny.cs
- ScriptDescriptor.cs
- TabItem.cs
- NTAccount.cs
- EventBuilder.cs
- EntityDataSourceView.cs
- DataServiceQuery.cs
- TransformerConfigurationWizardBase.cs
- CommandLineParser.cs
- RunWorkerCompletedEventArgs.cs
- RepeatBehavior.cs
- glyphs.cs
- MasterPageBuildProvider.cs
- XmlValidatingReader.cs
- DebugHandleTracker.cs
- CharacterString.cs
- HyperLinkDataBindingHandler.cs
- VariableAction.cs
- DynamicPropertyReader.cs
- LogWriteRestartAreaAsyncResult.cs
- SendMailErrorEventArgs.cs
- TrustLevel.cs
- IgnoreSection.cs
- ButtonBase.cs
- ThreadStartException.cs
- ConnectionPoint.cs
- CqlBlock.cs
- SqlGenericUtil.cs
- SecurityDescriptor.cs
- ApplicationBuildProvider.cs
- WindowsClaimSet.cs
- xmlsaver.cs
- UnsafeNativeMethods.cs
- ErrorWrapper.cs
- Annotation.cs
- WebWorkflowRole.cs
- processwaithandle.cs
- FlowLayout.cs
- DataGridPagerStyle.cs
- StreamingContext.cs
- DataGridAddNewRow.cs
- DefaultHttpHandler.cs
- SimpleHandlerFactory.cs
- AndCondition.cs
- StaticResourceExtension.cs
- DataGridComboBoxColumn.cs
- RepeaterItemEventArgs.cs
- KeyGestureConverter.cs
- GPPOINTF.cs
- SingleSelectRootGridEntry.cs
- ProtocolsConfiguration.cs
- UrlRoutingModule.cs
- Update.cs
- DatagridviewDisplayedBandsData.cs
- SQLSingleStorage.cs
- CursorConverter.cs
- TextDpi.cs
- WebMessageEncodingElement.cs
- PathBox.cs
- QueryAccessibilityHelpEvent.cs
- XmlBinaryWriter.cs
- SharedDp.cs
- ObjectViewEntityCollectionData.cs
- ComponentGuaranteesAttribute.cs
- BamlResourceSerializer.cs
- InlinedAggregationOperatorEnumerator.cs
- XmlSchemaImporter.cs
- SimpleTypeResolver.cs
- Module.cs
- TypeBuilderInstantiation.cs
- GeometryModel3D.cs
- DataGridRowHeaderAutomationPeer.cs
- ReceiveCompletedEventArgs.cs
- EventsTab.cs
- ExtendLockAsyncResult.cs
- URIFormatException.cs
- SmtpCommands.cs