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
- SystemNetHelpers.cs
- RemotingHelper.cs
- _Win32.cs
- DeferredSelectedIndexReference.cs
- SqlVisitor.cs
- Column.cs
- HandlerBase.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- SerialReceived.cs
- AutomationIdentifier.cs
- CodeObjectCreateExpression.cs
- TrimSurroundingWhitespaceAttribute.cs
- ConditionalAttribute.cs
- ItemPager.cs
- HorizontalAlignConverter.cs
- SafeEventLogWriteHandle.cs
- FileLogRecord.cs
- XmlHelper.cs
- __Filters.cs
- HostedTcpTransportManager.cs
- EndpointFilterProvider.cs
- VScrollBar.cs
- UnsafeNativeMethods.cs
- XmlArrayItemAttributes.cs
- ProfilePropertyNameValidator.cs
- TimelineCollection.cs
- HttpFileCollection.cs
- FlowDocument.cs
- CodeAttributeDeclarationCollection.cs
- CompiledAction.cs
- ToolStripButton.cs
- ButtonFieldBase.cs
- OleDbStruct.cs
- DataSourceHelper.cs
- ConfigurationElementCollection.cs
- BufferCache.cs
- WebPartCancelEventArgs.cs
- ReflectEventDescriptor.cs
- DetailsViewInsertedEventArgs.cs
- DataGridAddNewRow.cs
- SecurityContext.cs
- UpdateExpressionVisitor.cs
- XLinq.cs
- HttpModulesSection.cs
- ProcessRequestArgs.cs
- WebPartVerbCollection.cs
- SQLByteStorage.cs
- EntitySqlQueryCacheKey.cs
- TextParaLineResult.cs
- RadioButtonList.cs
- RuntimeTrackingProfile.cs
- CategoryAttribute.cs
- OSFeature.cs
- FilteredXmlReader.cs
- ValueTypeFixupInfo.cs
- ParameterCollection.cs
- TextServicesDisplayAttribute.cs
- GacUtil.cs
- EmptyReadOnlyDictionaryInternal.cs
- EventRoute.cs
- InkCanvasAutomationPeer.cs
- FileCodeGroup.cs
- Activator.cs
- BuildManager.cs
- GridToolTip.cs
- DataGridViewCellCollection.cs
- CalendarTable.cs
- NetWebProxyFinder.cs
- SqlEnums.cs
- SQLInt16Storage.cs
- DependsOnAttribute.cs
- XmlSchemaDocumentation.cs
- ProfileGroupSettingsCollection.cs
- EntityType.cs
- WebPartHeaderCloseVerb.cs
- SettingsSavedEventArgs.cs
- MenuItemStyleCollectionEditor.cs
- XmlNamespaceManager.cs
- LocalFileSettingsProvider.cs
- DocumentDesigner.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- RowTypeElement.cs
- HttpProxyTransportBindingElement.cs
- BaseParser.cs
- DbProviderFactory.cs
- EndpointReference.cs
- SBCSCodePageEncoding.cs
- ExtensionDataObject.cs
- CompiledELinqQueryState.cs
- Size3D.cs
- Help.cs
- EntityDataSourceColumn.cs
- TextServicesCompartmentEventSink.cs
- LocalizabilityAttribute.cs
- ZoomPercentageConverter.cs
- listviewsubitemcollectioneditor.cs
- FieldMetadata.cs
- TempFiles.cs
- ConfigUtil.cs
- HMACSHA1.cs