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
- PropertyStore.cs
- Int16Converter.cs
- CompilationRelaxations.cs
- AQNBuilder.cs
- RadioButtonFlatAdapter.cs
- RepeaterItemCollection.cs
- XmlSchemaAll.cs
- SelectionRangeConverter.cs
- MetaModel.cs
- QueryRewriter.cs
- Types.cs
- TextSegment.cs
- ComponentDispatcherThread.cs
- ConfigViewGenerator.cs
- MessageCredentialType.cs
- DataGridToolTip.cs
- DependencyObjectProvider.cs
- EntityClassGenerator.cs
- EncodingInfo.cs
- SemanticTag.cs
- WindowAutomationPeer.cs
- DrawingBrush.cs
- RotateTransform.cs
- WeakEventManager.cs
- WSHttpBinding.cs
- ColumnClickEvent.cs
- WebResourceAttribute.cs
- XsdValidatingReader.cs
- SmtpFailedRecipientsException.cs
- SelectionService.cs
- EmptyStringExpandableObjectConverter.cs
- InternalControlCollection.cs
- TerminatorSinks.cs
- GenericTextProperties.cs
- RegistryKey.cs
- XmlAnyElementAttributes.cs
- HostingPreferredMapPath.cs
- AnnotationResourceCollection.cs
- TextFormatter.cs
- XmlTextAttribute.cs
- ConnectionPoolManager.cs
- CodeSnippetCompileUnit.cs
- KeyInterop.cs
- PingReply.cs
- CodeDomDecompiler.cs
- WebServicesSection.cs
- DBParameter.cs
- OrderingExpression.cs
- HttpAsyncResult.cs
- DefaultObjectMappingItemCollection.cs
- GridViewCancelEditEventArgs.cs
- XmlSchemaComplexContent.cs
- ScriptResourceDefinition.cs
- AddToCollection.cs
- OleServicesContext.cs
- SectionRecord.cs
- DispatcherExceptionFilterEventArgs.cs
- SecurityToken.cs
- BitmapEffectDrawingContextState.cs
- PersistenceTypeAttribute.cs
- FrameworkElementFactoryMarkupObject.cs
- MDIWindowDialog.cs
- NullableBoolConverter.cs
- ArrayListCollectionBase.cs
- XmlElement.cs
- Point3DConverter.cs
- ConfigurationSectionCollection.cs
- RoleGroup.cs
- XmlQueryStaticData.cs
- ScriptResourceAttribute.cs
- XmlCDATASection.cs
- XmlCodeExporter.cs
- SmiRecordBuffer.cs
- WebExceptionStatus.cs
- ContentType.cs
- PipelineModuleStepContainer.cs
- ProfileSettings.cs
- LocatorGroup.cs
- _PooledStream.cs
- XmlDownloadManager.cs
- Attributes.cs
- ConversionContext.cs
- WebBrowser.cs
- CompilerHelpers.cs
- ValueType.cs
- DependencyPropertyKey.cs
- IncrementalReadDecoders.cs
- EntityDataSourceValidationException.cs
- Int32KeyFrameCollection.cs
- AttributeQuery.cs
- ListViewItemCollectionEditor.cs
- SecurityUtils.cs
- XsdDateTime.cs
- WebBrowserPermission.cs
- Polyline.cs
- CompositeDataBoundControl.cs
- Metafile.cs
- PinnedBufferMemoryStream.cs
- FormsAuthenticationCredentials.cs
- Button.cs