Code:
/ FX-1434 / FX-1434 / 1.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
- ToolStripKeyboardHandlingService.cs
- RayMeshGeometry3DHitTestResult.cs
- Errors.cs
- PageThemeBuildProvider.cs
- ChtmlTextWriter.cs
- RequestSecurityTokenForRemoteTokenFactory.cs
- StylusButtonEventArgs.cs
- HelpProvider.cs
- ServiceInfo.cs
- DetailsViewInsertEventArgs.cs
- ControlIdConverter.cs
- ToolCreatedEventArgs.cs
- JavaScriptSerializer.cs
- ServiceOperationParameter.cs
- DSACryptoServiceProvider.cs
- ThemeDirectoryCompiler.cs
- Double.cs
- InternalPermissions.cs
- AstTree.cs
- WSDualHttpSecurity.cs
- RenderDataDrawingContext.cs
- DateTimeSerializationSection.cs
- SqlEnums.cs
- XmlSchemaImport.cs
- OutputCacheModule.cs
- ImageButton.cs
- columnmapfactory.cs
- ReadWriteSpinLock.cs
- IIS7UserPrincipal.cs
- StylusDownEventArgs.cs
- RNGCryptoServiceProvider.cs
- Separator.cs
- RSAPKCS1SignatureDeformatter.cs
- HttpHeaderCollection.cs
- CapabilitiesSection.cs
- GridLength.cs
- ValuePattern.cs
- ItemChangedEventArgs.cs
- RectangleConverter.cs
- FlowDocumentScrollViewer.cs
- MessageRpc.cs
- MetadataCache.cs
- JournalEntry.cs
- TemplateComponentConnector.cs
- ConfigurationStrings.cs
- PartialArray.cs
- LineUtil.cs
- CultureInfoConverter.cs
- AffineTransform3D.cs
- TemplateBindingExpression.cs
- XmlDocument.cs
- Operators.cs
- SafeNativeMethodsCLR.cs
- VisualStyleInformation.cs
- ScrollViewerAutomationPeer.cs
- RuleSettingsCollection.cs
- EdmFunctions.cs
- ActivityExecutor.cs
- ObjectDataSourceEventArgs.cs
- SessionSymmetricTransportSecurityProtocolFactory.cs
- WindowsFormsSectionHandler.cs
- SecureEnvironment.cs
- OrderingQueryOperator.cs
- GeometryGroup.cs
- ValueSerializerAttribute.cs
- ThreadStartException.cs
- ElementUtil.cs
- ToolTip.cs
- SqlConnectionHelper.cs
- PageCatalogPart.cs
- ContractMapping.cs
- FormViewInsertEventArgs.cs
- InheritanceContextChangedEventManager.cs
- AppSettingsExpressionBuilder.cs
- RPIdentityRequirement.cs
- RangeValuePattern.cs
- CheckoutException.cs
- ListViewDataItem.cs
- CharacterHit.cs
- ManualResetEvent.cs
- DocumentViewerAutomationPeer.cs
- WorkerRequest.cs
- CallbackHandler.cs
- DirectoryInfo.cs
- HashHelper.cs
- VariableAction.cs
- ToolStripItemDataObject.cs
- EventLogPermissionEntryCollection.cs
- WebServiceParameterData.cs
- WeakRefEnumerator.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- GeometryDrawing.cs
- HtmlEncodedRawTextWriter.cs
- SessionPageStateSection.cs
- CornerRadius.cs
- XamlFigureLengthSerializer.cs
- EmptyControlCollection.cs
- DataSpaceManager.cs
- XappLauncher.cs
- DBProviderConfigurationHandler.cs