Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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. // Copyright (c) Microsoft Corporation. All rights reserved.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Ref.cs
- TableRow.cs
- LongCountAggregationOperator.cs
- BasicCellRelation.cs
- LocatorBase.cs
- XmlMtomReader.cs
- Point3DKeyFrameCollection.cs
- OdbcCommandBuilder.cs
- WebBrowserContainer.cs
- ChameleonKey.cs
- GridErrorDlg.cs
- TypefaceMap.cs
- Polyline.cs
- XmlCharType.cs
- ListViewTableRow.cs
- GroupBoxRenderer.cs
- SecurityElement.cs
- PeerTransportListenAddressConverter.cs
- TemplateControlParser.cs
- xmlfixedPageInfo.cs
- DashStyle.cs
- TriggerCollection.cs
- KeyFrames.cs
- ComponentManagerBroker.cs
- BrowsableAttribute.cs
- CacheMemory.cs
- QuaternionAnimationBase.cs
- CodeDirectiveCollection.cs
- M3DUtil.cs
- DecimalAverageAggregationOperator.cs
- WebPartEditorApplyVerb.cs
- SimplePropertyEntry.cs
- ConfigurationStrings.cs
- SingletonChannelAcceptor.cs
- ProxySimple.cs
- FormsAuthentication.cs
- SchemaNotation.cs
- WsatAdminException.cs
- TraceUtils.cs
- DataGridLengthConverter.cs
- RewritingProcessor.cs
- Button.cs
- ProfileManager.cs
- StreamUpdate.cs
- ObjectConverter.cs
- DbgUtil.cs
- DataControlFieldCell.cs
- PagePropertiesChangingEventArgs.cs
- DataSourceHelper.cs
- HttpPostedFile.cs
- HtmlTableCellCollection.cs
- TextDecorationCollection.cs
- DBConnection.cs
- HttpApplication.cs
- IISUnsafeMethods.cs
- CodeArgumentReferenceExpression.cs
- ParserContext.cs
- GridSplitterAutomationPeer.cs
- ModifiableIteratorCollection.cs
- ExpressionBinding.cs
- ReadOnlyDataSource.cs
- OdbcUtils.cs
- FileDialogCustomPlacesCollection.cs
- SerializationHelper.cs
- QilLoop.cs
- NativeCppClassAttribute.cs
- ToolStripHighContrastRenderer.cs
- Ray3DHitTestResult.cs
- SystemDiagnosticsSection.cs
- ContentPathSegment.cs
- _SafeNetHandles.cs
- AlphabeticalEnumConverter.cs
- ISAPIRuntime.cs
- FileDetails.cs
- HierarchicalDataTemplate.cs
- WSFederationHttpBindingCollectionElement.cs
- OutputCacheProfile.cs
- SettingsBindableAttribute.cs
- XmlLinkedNode.cs
- ViewManager.cs
- XhtmlBasicValidatorAdapter.cs
- WpfWebRequestHelper.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- NameTable.cs
- Zone.cs
- DrawingBrush.cs
- graph.cs
- SessionStateItemCollection.cs
- MemberDomainMap.cs
- DoWorkEventArgs.cs
- TaskHelper.cs
- ZipIOCentralDirectoryBlock.cs
- WebBrowserEvent.cs
- BitmapMetadata.cs
- InputReport.cs
- FixedPosition.cs
- TransformCollection.cs
- EdmFunction.cs
- ListViewItemSelectionChangedEvent.cs
- ServiceBuildProvider.cs