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
- XmlBufferReader.cs
- StackOverflowException.cs
- QilLiteral.cs
- CfgRule.cs
- XmlValidatingReader.cs
- InternalDuplexChannelFactory.cs
- ClientSponsor.cs
- lengthconverter.cs
- HostingEnvironmentException.cs
- ExitEventArgs.cs
- BoundField.cs
- CodeObjectCreateExpression.cs
- EventPropertyMap.cs
- ItemCheckedEvent.cs
- HostedElements.cs
- ProviderCommandInfoUtils.cs
- CodeTypeParameterCollection.cs
- SamlSubjectStatement.cs
- DataMemberFieldConverter.cs
- TrackingProfileCache.cs
- ApplicationDirectory.cs
- PerformanceCounter.cs
- MaterialGroup.cs
- ExpressionBindingCollection.cs
- EdmTypeAttribute.cs
- HttpInputStream.cs
- ClientTargetCollection.cs
- ArgIterator.cs
- StructuredTypeEmitter.cs
- ScriptBehaviorDescriptor.cs
- ObjectContextServiceProvider.cs
- ProfileProvider.cs
- TreeViewImageIndexConverter.cs
- NameValuePermission.cs
- AddInEnvironment.cs
- StreamGeometry.cs
- BamlRecordHelper.cs
- InputScope.cs
- DesignerToolboxInfo.cs
- FragmentQueryProcessor.cs
- TextSearch.cs
- LogEntryDeserializer.cs
- AttachedAnnotationChangedEventArgs.cs
- RegistrationServices.cs
- Table.cs
- DataSourceSelectArguments.cs
- ListMarkerLine.cs
- PEFileReader.cs
- Int32Collection.cs
- ObjectParameter.cs
- ConnectorDragDropGlyph.cs
- DataAccessException.cs
- DBCSCodePageEncoding.cs
- WindowShowOrOpenTracker.cs
- HebrewNumber.cs
- SqlDesignerDataSourceView.cs
- TableStyle.cs
- _SingleItemRequestCache.cs
- GeometryDrawing.cs
- UserMapPath.cs
- AccessDataSourceView.cs
- GetLedgerEntryForRecipientRequest.cs
- ManagementObjectCollection.cs
- RegexMatchCollection.cs
- RuntimeIdentifierPropertyAttribute.cs
- SamlSecurityToken.cs
- SmiEventSink.cs
- ImportCatalogPart.cs
- WindowInteropHelper.cs
- DataGridItem.cs
- XmlCountingReader.cs
- StateMachineWorkflowDesigner.cs
- safePerfProviderHandle.cs
- DataServiceHost.cs
- TriggerCollection.cs
- CollectionBuilder.cs
- NavigationService.cs
- GridEntryCollection.cs
- FontUnit.cs
- HttpHandlerActionCollection.cs
- StaticResourceExtension.cs
- ConstantExpression.cs
- ComponentEvent.cs
- EncryptedType.cs
- AccessKeyManager.cs
- EdmItemError.cs
- PopupRoot.cs
- ScriptRef.cs
- BindingsSection.cs
- ADMembershipProvider.cs
- KeyManager.cs
- DataSetMappper.cs
- _NTAuthentication.cs
- NetworkInformationPermission.cs
- DataKey.cs
- PageVisual.cs
- DataGridViewLayoutData.cs
- FileLevelControlBuilderAttribute.cs
- CodeCompiler.cs
- AccessDataSourceView.cs