Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- Method.cs
- ParsedAttributeCollection.cs
- TextViewBase.cs
- ScalarRestriction.cs
- CopyAction.cs
- DashStyle.cs
- ActiveXHost.cs
- WebPart.cs
- GacUtil.cs
- TranslateTransform3D.cs
- EnumValidator.cs
- ChangeDirector.cs
- ChannelBinding.cs
- PageOutputColor.cs
- MissingMethodException.cs
- SoapAttributeOverrides.cs
- ImageDesigner.cs
- Vector.cs
- TextDecoration.cs
- XmlSchemaElement.cs
- FontClient.cs
- FlowDocumentFormatter.cs
- FileDialogPermission.cs
- WebBrowserNavigatedEventHandler.cs
- InputQueueChannelAcceptor.cs
- SubclassTypeValidator.cs
- TrimSurroundingWhitespaceAttribute.cs
- SimpleApplicationHost.cs
- DocumentViewerHelper.cs
- AnnotationAuthorChangedEventArgs.cs
- DbConnectionPoolOptions.cs
- DomNameTable.cs
- LogStream.cs
- DataServices.cs
- EnvironmentPermission.cs
- DataSourceControlBuilder.cs
- OrthographicCamera.cs
- BitmapSource.cs
- GridViewItemAutomationPeer.cs
- DebugHandleTracker.cs
- ExtenderControl.cs
- EntityDataReader.cs
- FixedSchema.cs
- Stroke2.cs
- ToolStripDropDownItem.cs
- QueryOperationResponseOfT.cs
- ReadOnlyAttribute.cs
- DataTransferEventArgs.cs
- EntityDataSourceView.cs
- SizeF.cs
- ImageSourceValueSerializer.cs
- WindowsListViewGroupSubsetLink.cs
- CombinedGeometry.cs
- ExpressionTextBoxAutomationPeer.cs
- EditingMode.cs
- PropertyFilterAttribute.cs
- EntityDataSourceConfigureObjectContextPanel.cs
- MasterPageCodeDomTreeGenerator.cs
- AssociativeAggregationOperator.cs
- MeasureData.cs
- ObjectResult.cs
- UiaCoreApi.cs
- VisualBrush.cs
- ParseElementCollection.cs
- RowBinding.cs
- SqlCacheDependencyDatabaseCollection.cs
- DictionaryBase.cs
- ScrollBarRenderer.cs
- RelatedPropertyManager.cs
- NavigatingCancelEventArgs.cs
- ColorPalette.cs
- unsafenativemethodstextservices.cs
- VirtualizingStackPanel.cs
- ConfigXmlElement.cs
- IDictionary.cs
- MessageDroppedTraceRecord.cs
- AssemblyHash.cs
- COM2ColorConverter.cs
- CatchBlock.cs
- SpotLight.cs
- FixedTextContainer.cs
- Compress.cs
- WindowsScrollBarBits.cs
- QuaternionValueSerializer.cs
- OdbcTransaction.cs
- DockingAttribute.cs
- ColorDialog.cs
- ObjectToIdCache.cs
- DataBoundControlParameterTarget.cs
- AccessDataSourceWizardForm.cs
- EntityDataSource.cs
- OuterGlowBitmapEffect.cs
- ZipArchive.cs
- SecurityChannelFactory.cs
- ProgressBarHighlightConverter.cs
- BehaviorEditorPart.cs
- LinqDataSource.cs
- URIFormatException.cs
- DiscardableAttribute.cs
- _HeaderInfoTable.cs