Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Serialization / XmlAttributeOverrides.cs / 1305376 / 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.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BCLDebug.cs
- CodePageUtils.cs
- VisualStates.cs
- InsufficientMemoryException.cs
- DbConnectionInternal.cs
- ZipFileInfoCollection.cs
- UniqueSet.cs
- SelectionProcessor.cs
- Separator.cs
- KeyFrames.cs
- EntityDataSourceStatementEditor.cs
- NameScope.cs
- bidPrivateBase.cs
- XmlBoundElement.cs
- GenericRootAutomationPeer.cs
- URLIdentityPermission.cs
- DataGridViewCellValueEventArgs.cs
- BitmapEffect.cs
- ObservableDictionary.cs
- DispatcherExceptionEventArgs.cs
- ParallelQuery.cs
- FieldAccessException.cs
- TextCollapsingProperties.cs
- CellRelation.cs
- WorkflowRequestContext.cs
- SafeEventLogReadHandle.cs
- PropertyBuilder.cs
- ActivationArguments.cs
- ErrorHandler.cs
- TrackingDataItem.cs
- HttpApplicationFactory.cs
- CryptoKeySecurity.cs
- ResourceCategoryAttribute.cs
- IPipelineRuntime.cs
- AxHost.cs
- PropertyRecord.cs
- IntegerFacetDescriptionElement.cs
- ServiceModelPerformanceCounters.cs
- ConfigPathUtility.cs
- BrowserTree.cs
- ProgressiveCrcCalculatingStream.cs
- HuffmanTree.cs
- CommonProperties.cs
- DependencyPropertyKind.cs
- XmlBoundElement.cs
- SqlConnectionPoolProviderInfo.cs
- RepeatInfo.cs
- RootBrowserWindowProxy.cs
- Size.cs
- ManipulationPivot.cs
- ServiceParser.cs
- WindowsProgressbar.cs
- EventProxy.cs
- Barrier.cs
- ReflectionTypeLoadException.cs
- VirtualPath.cs
- WebPageTraceListener.cs
- ColumnMapCopier.cs
- PageVisual.cs
- ScrollItemPatternIdentifiers.cs
- ManagementObjectSearcher.cs
- LateBoundBitmapDecoder.cs
- SecurityContextKeyIdentifierClause.cs
- ConfigurationStrings.cs
- ConstraintConverter.cs
- DeclaredTypeValidatorAttribute.cs
- StructuredType.cs
- WebPartConnectVerb.cs
- PageCatalogPartDesigner.cs
- SelectionHighlightInfo.cs
- Normalization.cs
- CodeMemberProperty.cs
- TreeViewItemAutomationPeer.cs
- CommandDevice.cs
- GenerateScriptTypeAttribute.cs
- TempEnvironment.cs
- iisPickupDirectory.cs
- SmiMetaData.cs
- QueueProcessor.cs
- RegexWriter.cs
- SignatureResourceHelper.cs
- InvokeAction.cs
- BaseServiceProvider.cs
- SystemIPAddressInformation.cs
- StoreConnection.cs
- StrongNameMembershipCondition.cs
- EventRouteFactory.cs
- SevenBitStream.cs
- ZipIOExtraField.cs
- TextRangeSerialization.cs
- SqlDataSourceCache.cs
- DesignerActionPropertyItem.cs
- MenuItemBinding.cs
- CompressStream.cs
- AdjustableArrowCap.cs
- InputDevice.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- Brush.cs
- Stackframe.cs
- RadioButtonAutomationPeer.cs