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
- XmlHierarchicalDataSourceView.cs
- PostBackTrigger.cs
- EntryWrittenEventArgs.cs
- ManifestResourceInfo.cs
- Stack.cs
- EntityChangedParams.cs
- AccessDataSource.cs
- ConfigUtil.cs
- WindowsUpDown.cs
- StrongNameUtility.cs
- Tag.cs
- FormViewInsertEventArgs.cs
- PanelDesigner.cs
- CubicEase.cs
- TableRowGroup.cs
- AssemblyBuilderData.cs
- FilterQueryOptionExpression.cs
- TranslateTransform.cs
- TreeChangeInfo.cs
- BooleanProjectedSlot.cs
- DataGridViewCellValidatingEventArgs.cs
- ExpressionBindingCollection.cs
- Stack.cs
- IMembershipProvider.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- Pair.cs
- ExpressionPrinter.cs
- CommunicationObjectManager.cs
- UITypeEditor.cs
- WebPartConnectionsCloseVerb.cs
- MsmqReceiveHelper.cs
- AppSettingsSection.cs
- SmtpSection.cs
- PackagingUtilities.cs
- AudioBase.cs
- ArgumentException.cs
- InputLangChangeRequestEvent.cs
- DigitalSignature.cs
- ConfigurationUtility.cs
- DbConnectionFactory.cs
- RequestQueryProcessor.cs
- MultiDataTrigger.cs
- MobileUserControl.cs
- AppLevelCompilationSectionCache.cs
- BaseParagraph.cs
- SwitchCase.cs
- XamlRtfConverter.cs
- HandleCollector.cs
- TextFormattingConverter.cs
- serverconfig.cs
- XmlNamespaceManager.cs
- ValidationErrorCollection.cs
- MissingFieldException.cs
- WindowsIPAddress.cs
- SwitchCase.cs
- FatalException.cs
- ModelItemDictionaryImpl.cs
- OleDbRowUpdatedEvent.cs
- DateTimeConverter2.cs
- RelativeSource.cs
- ContentOperations.cs
- StringFunctions.cs
- Logging.cs
- ObjectIDGenerator.cs
- DropTarget.cs
- BamlCollectionHolder.cs
- HttpCookieCollection.cs
- RuleSetReference.cs
- DBCSCodePageEncoding.cs
- RawStylusInputReport.cs
- OdbcRowUpdatingEvent.cs
- FlowLayoutSettings.cs
- Zone.cs
- IODescriptionAttribute.cs
- X509SubjectKeyIdentifierClause.cs
- EntityKeyElement.cs
- LassoHelper.cs
- SynchronizedReadOnlyCollection.cs
- ReferenceSchema.cs
- HttpRawResponse.cs
- Int32Collection.cs
- CroppedBitmap.cs
- CryptoApi.cs
- ChildDocumentBlock.cs
- httpstaticobjectscollection.cs
- NumberEdit.cs
- ChangesetResponse.cs
- BuildProviderCollection.cs
- PixelFormat.cs
- RightsManagementPermission.cs
- CodePageUtils.cs
- LogicalTreeHelper.cs
- ValidationSummary.cs
- MaterialGroup.cs
- WindowsHyperlink.cs
- Table.cs
- HMACSHA256.cs
- CancellationHandlerDesigner.cs
- CorrelationQuery.cs
- BuilderPropertyEntry.cs