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
- XhtmlTextWriter.cs
- Claim.cs
- CodePropertyReferenceExpression.cs
- ToolStripManager.cs
- ModelFunction.cs
- MinimizableAttributeTypeConverter.cs
- NonBatchDirectoryCompiler.cs
- FixedPosition.cs
- SqlWebEventProvider.cs
- HtmlFormParameterReader.cs
- WebControlAdapter.cs
- ResourceDisplayNameAttribute.cs
- CodeTypeParameterCollection.cs
- PriorityItem.cs
- EndOfStreamException.cs
- XmlSchemaSimpleType.cs
- TableMethodGenerator.cs
- TryExpression.cs
- BaseComponentEditor.cs
- SystemWebExtensionsSectionGroup.cs
- DeobfuscatingStream.cs
- MatrixUtil.cs
- HttpCapabilitiesEvaluator.cs
- ToolStripDropTargetManager.cs
- TextWriterTraceListener.cs
- SiteMapNodeItemEventArgs.cs
- DisposableCollectionWrapper.cs
- DataPagerFieldCollection.cs
- PathNode.cs
- PageHandlerFactory.cs
- basevalidator.cs
- NullRuntimeConfig.cs
- _DigestClient.cs
- CharConverter.cs
- GridSplitter.cs
- AnnotationHelper.cs
- XmlWriter.cs
- EditorPartChrome.cs
- XPathNodeList.cs
- Latin1Encoding.cs
- PerformanceCounterPermission.cs
- VirtualizingPanel.cs
- ResourceType.cs
- SQLInt16Storage.cs
- DBBindings.cs
- MsdtcClusterUtils.cs
- GradientStopCollection.cs
- MemoryFailPoint.cs
- StreamWithDictionary.cs
- GlobalizationAssembly.cs
- Parser.cs
- SendKeys.cs
- SHA384.cs
- ConstraintConverter.cs
- ToolStripComboBox.cs
- DesignerDataTableBase.cs
- MinMaxParagraphWidth.cs
- SendKeys.cs
- MatrixTransform3D.cs
- RelationshipType.cs
- DataControlFieldCollection.cs
- WebPartManagerInternals.cs
- CommentEmitter.cs
- ConfigXmlCDataSection.cs
- EntryPointNotFoundException.cs
- ComplexType.cs
- SqlFacetAttribute.cs
- XhtmlTextWriter.cs
- StructuredProperty.cs
- MD5CryptoServiceProvider.cs
- TextPenaltyModule.cs
- ReflectEventDescriptor.cs
- AutoResetEvent.cs
- EntityViewGenerator.cs
- BigInt.cs
- BulletedListEventArgs.cs
- XmlAttributeProperties.cs
- OleDbSchemaGuid.cs
- List.cs
- JsonFormatReaderGenerator.cs
- Literal.cs
- ISessionStateStore.cs
- StylusEditingBehavior.cs
- ImportContext.cs
- PipeException.cs
- PropertyPath.cs
- HtmlTernaryTree.cs
- VerticalAlignConverter.cs
- InvalidOleVariantTypeException.cs
- SqlConnectionString.cs
- VScrollProperties.cs
- ComponentDispatcher.cs
- BindToObject.cs
- ImportedNamespaceContextItem.cs
- xamlnodes.cs
- OleDbPropertySetGuid.cs
- Separator.cs
- PointF.cs
- ManualResetEvent.cs
- ComponentCommands.cs