Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. //------------------------------------------------------------------------------ //[To be supplied.] ///// 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.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DbRetry.cs
- Sequence.cs
- EditorBrowsableAttribute.cs
- XsdDuration.cs
- BindingExpressionBase.cs
- TableLayoutColumnStyleCollection.cs
- Label.cs
- DrawingVisualDrawingContext.cs
- ProtectedProviderSettings.cs
- IssuanceLicense.cs
- Camera.cs
- ProtocolElement.cs
- ProgressPage.cs
- XmlNullResolver.cs
- TriggerBase.cs
- ToggleProviderWrapper.cs
- ProfileManager.cs
- ResourceProviderFactory.cs
- SelfIssuedSamlTokenFactory.cs
- OdbcErrorCollection.cs
- StreamWriter.cs
- QuotedPrintableStream.cs
- ToolboxDataAttribute.cs
- ArcSegment.cs
- AVElementHelper.cs
- DataSysAttribute.cs
- Exception.cs
- LinqDataSourceView.cs
- login.cs
- WebUtil.cs
- BlockCollection.cs
- DesignerEditorPartChrome.cs
- ApplicationTrust.cs
- DesignConnectionCollection.cs
- LabelLiteral.cs
- StreamUpgradeInitiator.cs
- PropertyInfoSet.cs
- TreeViewItem.cs
- DocumentCollection.cs
- Schedule.cs
- RC2.cs
- PerformanceCounterCategory.cs
- OracleRowUpdatingEventArgs.cs
- TreeWalker.cs
- WebAdminConfigurationHelper.cs
- HtmlControlPersistable.cs
- WebPartEventArgs.cs
- SingleKeyFrameCollection.cs
- NeutralResourcesLanguageAttribute.cs
- DuplicateWaitObjectException.cs
- HttpCacheParams.cs
- ChannelBuilder.cs
- DataObjectPastingEventArgs.cs
- RTTypeWrapper.cs
- ViewBase.cs
- EnumerableValidator.cs
- ReadOnlyPropertyMetadata.cs
- X509ThumbprintKeyIdentifierClause.cs
- ApplicationDirectoryMembershipCondition.cs
- RegexTree.cs
- WebServiceResponseDesigner.cs
- UserControl.cs
- RegexRunnerFactory.cs
- TextChangedEventArgs.cs
- ExpressionPrinter.cs
- FlowLayoutPanel.cs
- MaskDescriptors.cs
- CodeObjectCreateExpression.cs
- WebPartCatalogCloseVerb.cs
- Vector3D.cs
- LambdaCompiler.ControlFlow.cs
- TdsEnums.cs
- ErrorReporting.cs
- SQLSingle.cs
- RequestCachingSection.cs
- QueryOutputWriter.cs
- Claim.cs
- AnnotationAdorner.cs
- NavigationCommands.cs
- TemplateBindingExpression.cs
- SQLDateTimeStorage.cs
- DataRowComparer.cs
- DataColumnMappingCollection.cs
- SessionStateSection.cs
- MessageFilterTable.cs
- RotateTransform3D.cs
- XmlSchemaObjectCollection.cs
- TypeConverterMarkupExtension.cs
- HttpConfigurationSystem.cs
- XmlCharType.cs
- ToolboxDataAttribute.cs
- FormsAuthenticationTicket.cs
- SendKeys.cs
- AppSettingsExpressionBuilder.cs
- FeedUtils.cs
- WebSysDefaultValueAttribute.cs
- TargetParameterCountException.cs
- cookie.cs
- SmtpFailedRecipientsException.cs
- NameValueCollection.cs