Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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
- RijndaelManagedTransform.cs
- DataSourceCacheDurationConverter.cs
- MouseButton.cs
- PointLight.cs
- XmlSchemaAnnotation.cs
- StringCollection.cs
- DateTimeConstantAttribute.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- ExpressionVisitorHelpers.cs
- XamlSerializationHelper.cs
- CompositeCollection.cs
- ObjectDataSourceChooseTypePanel.cs
- XmlDocumentFragment.cs
- HtmlToClrEventProxy.cs
- XmlCDATASection.cs
- FastEncoderWindow.cs
- CompositeCollectionView.cs
- InfoCardBaseException.cs
- SchemaObjectWriter.cs
- HierarchicalDataBoundControl.cs
- UrlUtility.cs
- AttachedAnnotation.cs
- VisualStateGroup.cs
- ErrorFormatter.cs
- XPathBinder.cs
- PartialTrustHelpers.cs
- WebServiceResponse.cs
- HierarchicalDataSourceDesigner.cs
- TextAnchor.cs
- XmlImplementation.cs
- Update.cs
- CounterNameConverter.cs
- XmlHierarchicalEnumerable.cs
- Size3D.cs
- Preprocessor.cs
- GenericEnumerator.cs
- FixedHighlight.cs
- PageEventArgs.cs
- XmlDictionaryWriter.cs
- MLangCodePageEncoding.cs
- SingleAnimationBase.cs
- Membership.cs
- TemplateControl.cs
- LinkLabelLinkClickedEvent.cs
- DropShadowBitmapEffect.cs
- ListSourceHelper.cs
- DnsPermission.cs
- WebResponse.cs
- DataGridViewCellStyleEditor.cs
- ValueHandle.cs
- DataBinding.cs
- ConnectionProviderAttribute.cs
- EdmToObjectNamespaceMap.cs
- PropertyValueChangedEvent.cs
- SelectorAutomationPeer.cs
- XappLauncher.cs
- EnumerableCollectionView.cs
- IPAddressCollection.cs
- ItemCheckEvent.cs
- ExternalFile.cs
- SendActivityEventArgs.cs
- Facet.cs
- SystemTcpStatistics.cs
- ContentDisposition.cs
- CollectionBuilder.cs
- ObjectComplexPropertyMapping.cs
- _Connection.cs
- DataSourceHelper.cs
- DataKeyCollection.cs
- StylusPointPropertyInfo.cs
- translator.cs
- FormViewUpdatedEventArgs.cs
- DataListItemCollection.cs
- JsonClassDataContract.cs
- TextBoxLine.cs
- DateTimeParse.cs
- EventHandlersStore.cs
- HostingMessageProperty.cs
- FormatException.cs
- SecurityTokenResolver.cs
- RadioButtonBaseAdapter.cs
- Int32.cs
- StickyNoteContentControl.cs
- ColorAnimationBase.cs
- ErrorTolerantObjectWriter.cs
- TextWriter.cs
- WebUtil.cs
- GroupBox.cs
- StructuralCache.cs
- ElementHostAutomationPeer.cs
- SizeKeyFrameCollection.cs
- PropertyItem.cs
- EventLevel.cs
- ObjectToken.cs
- StoryFragments.cs
- XamlReaderHelper.cs
- MessageQueueCriteria.cs
- ReferencedAssembly.cs
- SplashScreen.cs
- BaseCAMarshaler.cs