Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Serialization / XmlAttributeOverrides.cs / 1305376 / 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
- FixedSOMTableRow.cs
- XmlChildEnumerator.cs
- Clipboard.cs
- UnknownBitmapDecoder.cs
- InputBuffer.cs
- XmlAttribute.cs
- precedingquery.cs
- OpenFileDialog.cs
- SortedList.cs
- XmlSchemaAttributeGroup.cs
- ISFClipboardData.cs
- SqlDataSourceView.cs
- UserControlAutomationPeer.cs
- ParameterCollection.cs
- SchemaMapping.cs
- BitmapCodecInfoInternal.cs
- Constraint.cs
- SystemDropShadowChrome.cs
- Argument.cs
- ColorContext.cs
- SqlBulkCopyColumnMappingCollection.cs
- DataGridViewComboBoxColumn.cs
- WindowsGraphicsCacheManager.cs
- CollectionEditVerbManager.cs
- CollaborationHelperFunctions.cs
- FullTextBreakpoint.cs
- OutOfProcStateClientManager.cs
- GrammarBuilderPhrase.cs
- UIElementPropertyUndoUnit.cs
- TextFragmentEngine.cs
- ProgressBarRenderer.cs
- RoutedCommand.cs
- ControlUtil.cs
- SafeRightsManagementSessionHandle.cs
- MainMenu.cs
- AdapterDictionary.cs
- QuaternionValueSerializer.cs
- SchemaExporter.cs
- WebRequest.cs
- DataColumnCollection.cs
- HostedElements.cs
- TemplateModeChangedEventArgs.cs
- PropertyMetadata.cs
- SafeCryptoKeyHandle.cs
- PagedDataSource.cs
- ConvertEvent.cs
- ToolStripGrip.cs
- AnnotationService.cs
- MLangCodePageEncoding.cs
- RowToFieldTransformer.cs
- StringResourceManager.cs
- MDIWindowDialog.cs
- XmlNotation.cs
- login.cs
- TableLayoutColumnStyleCollection.cs
- FileUtil.cs
- ConstructorNeedsTagAttribute.cs
- UIElement3D.cs
- MaskedTextBoxTextEditor.cs
- PenThread.cs
- DetailsViewRow.cs
- ActivitySurrogate.cs
- GetWinFXPath.cs
- MetadataItem.cs
- CredentialCache.cs
- DetailsView.cs
- EmptyTextWriter.cs
- ProfileService.cs
- DashStyle.cs
- ColumnHeaderConverter.cs
- TypeLibConverter.cs
- SafeNativeMemoryHandle.cs
- CmsInterop.cs
- DataGridViewComboBoxColumn.cs
- SiteMap.cs
- ImageSource.cs
- BrowserCapabilitiesFactoryBase.cs
- SqlWriter.cs
- HtmlTableRowCollection.cs
- RolePrincipal.cs
- DataGridViewSelectedCellCollection.cs
- PointAnimation.cs
- MatrixUtil.cs
- TimeZone.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- OneOf.cs
- XmlSchemaObjectCollection.cs
- XmlReaderSettings.cs
- PointHitTestResult.cs
- CombinedGeometry.cs
- ITreeGenerator.cs
- PathFigureCollectionConverter.cs
- RijndaelCryptoServiceProvider.cs
- x509utils.cs
- CodeLinePragma.cs
- ToolStripMenuItem.cs
- XmlReaderSettings.cs
- CommonProperties.cs
- Base64WriteStateInfo.cs
- _AutoWebProxyScriptEngine.cs