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
- AmbiguousMatchException.cs
- TraceHandler.cs
- Validator.cs
- ByteRangeDownloader.cs
- Rectangle.cs
- MetadataCache.cs
- Vector.cs
- VisualStyleInformation.cs
- HtmlElement.cs
- RefreshPropertiesAttribute.cs
- ExpressionVisitor.cs
- PlanCompilerUtil.cs
- RegisteredArrayDeclaration.cs
- MouseActionValueSerializer.cs
- ObjectQueryState.cs
- UnionExpr.cs
- SafeNativeMethods.cs
- SystemIPGlobalStatistics.cs
- GACMembershipCondition.cs
- OracleConnectionFactory.cs
- odbcmetadatacollectionnames.cs
- EDesignUtil.cs
- StyleHelper.cs
- DataRecordInfo.cs
- PrintPreviewDialog.cs
- BindingNavigatorDesigner.cs
- MailWriter.cs
- LinearQuaternionKeyFrame.cs
- IResourceProvider.cs
- SafeLocalAllocation.cs
- ClientData.cs
- Model3DCollection.cs
- WaitForChangedResult.cs
- XmlCharCheckingReader.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- SectionInformation.cs
- TimeoutException.cs
- PeerCollaborationPermission.cs
- ProcessManager.cs
- RelationHandler.cs
- TdsRecordBufferSetter.cs
- AdRotator.cs
- TraceInternal.cs
- OdbcFactory.cs
- ReadOnlyPermissionSet.cs
- TypeExtensions.cs
- BorderGapMaskConverter.cs
- StorageEntityTypeMapping.cs
- SqlAliasesReferenced.cs
- SynchronizationContext.cs
- ValidationError.cs
- CodeMethodInvokeExpression.cs
- CipherData.cs
- SEHException.cs
- AddInSegmentDirectoryNotFoundException.cs
- XamlTreeBuilderBamlRecordWriter.cs
- CurrentTimeZone.cs
- XmlAttributeCache.cs
- ExtendedTransformFactory.cs
- precedingquery.cs
- DataTemplateSelector.cs
- InputBinding.cs
- Rectangle.cs
- SafeUserTokenHandle.cs
- _DomainName.cs
- HandleExceptionArgs.cs
- FontInfo.cs
- ParentUndoUnit.cs
- PhysicalFontFamily.cs
- TcpConnectionPoolSettingsElement.cs
- _HTTPDateParse.cs
- AssertUtility.cs
- SimpleWorkerRequest.cs
- MouseActionValueSerializer.cs
- WebPartUserCapability.cs
- BooleanProjectedSlot.cs
- ProfileManager.cs
- FeatureSupport.cs
- ValueTypeFieldReference.cs
- Token.cs
- FileSystemEventArgs.cs
- UnmanagedHandle.cs
- TreeNodeBindingCollection.cs
- WebPartConnectionsDisconnectVerb.cs
- NamespaceList.cs
- Point.cs
- ProtocolViolationException.cs
- InputLanguageSource.cs
- TreeNodeCollection.cs
- DoubleAverageAggregationOperator.cs
- WebResourceUtil.cs
- TdsRecordBufferSetter.cs
- RegexCapture.cs
- XPathSingletonIterator.cs
- HttpModuleCollection.cs
- ListViewItem.cs
- ServicePoint.cs
- FrugalList.cs
- OleStrCAMarshaler.cs
- List.cs