Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. //------------------------------------------------------------------------------ //[To be supplied.] ///// 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
- ComponentGuaranteesAttribute.cs
- DockPattern.cs
- X509Chain.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- SetStateDesigner.cs
- PointLight.cs
- CdpEqualityComparer.cs
- CursorConverter.cs
- DataMember.cs
- WindowsGraphics2.cs
- uribuilder.cs
- VisualTransition.cs
- ProfilePropertySettings.cs
- ButtonRenderer.cs
- Evidence.cs
- DeviceSpecificDesigner.cs
- XmlSchemaSet.cs
- FixedBufferAttribute.cs
- DockPattern.cs
- ImageListDesigner.cs
- XmlMapping.cs
- RemoteWebConfigurationHost.cs
- TextDecorationUnitValidation.cs
- WebBrowserNavigatedEventHandler.cs
- MetadataArtifactLoaderResource.cs
- DataGridViewCellValueEventArgs.cs
- XPathChildIterator.cs
- DebugController.cs
- GridViewHeaderRowPresenter.cs
- UdpMessageProperty.cs
- MimeMultiPart.cs
- FontStretch.cs
- SkipStoryboardToFill.cs
- RecordsAffectedEventArgs.cs
- loginstatus.cs
- OptionUsage.cs
- Propagator.cs
- Stream.cs
- NamedPipeTransportElement.cs
- MemberDomainMap.cs
- ImageBrush.cs
- TextDecorations.cs
- QueryOperationResponseOfT.cs
- DocumentApplication.cs
- ContainerVisual.cs
- DeploymentSectionCache.cs
- Win32.cs
- RecipientInfo.cs
- DynamicPropertyReader.cs
- HttpFormatExtensions.cs
- ArraySubsetEnumerator.cs
- ConsumerConnectionPointCollection.cs
- TcpTransportElement.cs
- Utils.cs
- ObjectReaderCompiler.cs
- webbrowsersite.cs
- LineVisual.cs
- SessionState.cs
- CommonRemoteMemoryBlock.cs
- ProviderCollection.cs
- RawStylusInputCustomDataList.cs
- UxThemeWrapper.cs
- DrawingServices.cs
- ISAPIRuntime.cs
- OutOfMemoryException.cs
- ClientCultureInfo.cs
- ServiceDocument.cs
- QilReference.cs
- MonthCalendar.cs
- NameScopePropertyAttribute.cs
- TcpConnectionPoolSettings.cs
- InputLanguageEventArgs.cs
- BorderGapMaskConverter.cs
- CqlErrorHelper.cs
- SymmetricAlgorithm.cs
- ContentElement.cs
- PartitionResolver.cs
- SystemTcpConnection.cs
- SafeFileMapViewHandle.cs
- HtmlInputFile.cs
- ListViewItemSelectionChangedEvent.cs
- SupportsEventValidationAttribute.cs
- X509PeerCertificateElement.cs
- StringDictionary.cs
- ApplicationBuildProvider.cs
- EntitySqlException.cs
- AssociationSet.cs
- NamespaceList.cs
- RepeatInfo.cs
- SingleQueryOperator.cs
- SymDocumentType.cs
- HttpProcessUtility.cs
- ScriptResourceAttribute.cs
- PrePrepareMethodAttribute.cs
- PropertyInfoSet.cs
- DateTimeFormat.cs
- GradientSpreadMethodValidation.cs
- AutomationAttributeInfo.cs
- BooleanProjectedSlot.cs
- WsdlInspector.cs