Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- TypeReference.cs
- SrgsDocumentParser.cs
- SamlSubjectStatement.cs
- PassportIdentity.cs
- OutputCacheProfileCollection.cs
- WebBrowserNavigatedEventHandler.cs
- DependencyPropertyConverter.cs
- VectorCollection.cs
- RegexStringValidator.cs
- HttpHandlerAction.cs
- RawStylusInputReport.cs
- ListControlBoundActionList.cs
- PropertyToken.cs
- RegexMatchCollection.cs
- RouteParser.cs
- WebZone.cs
- CachedCompositeFamily.cs
- MarkedHighlightComponent.cs
- SimpleRecyclingCache.cs
- WindowsTokenRoleProvider.cs
- HopperCache.cs
- DataReaderContainer.cs
- LicenseException.cs
- GreaterThanOrEqual.cs
- WebConfigurationHost.cs
- ApplyImportsAction.cs
- ContextStaticAttribute.cs
- ColorTransform.cs
- ClrProviderManifest.cs
- Panel.cs
- WebRequestModuleElementCollection.cs
- OptimalBreakSession.cs
- XsltOutput.cs
- DataGridBoolColumn.cs
- ActiveXHelper.cs
- CommonRemoteMemoryBlock.cs
- PropertyEmitterBase.cs
- ProfilePropertyNameValidator.cs
- HtmlTableRowCollection.cs
- UIPermission.cs
- AnnotationStore.cs
- SyndicationSerializer.cs
- UrlPropertyAttribute.cs
- MetadataExchangeBindings.cs
- ColumnPropertiesGroup.cs
- ModelPerspective.cs
- JsonFormatGeneratorStatics.cs
- SqlUtil.cs
- AuthenticationSection.cs
- WebBrowser.cs
- UserPreferenceChangedEventArgs.cs
- DiscreteKeyFrames.cs
- DefaultValueAttribute.cs
- ServicePointManager.cs
- TransactionScope.cs
- SystemWebSectionGroup.cs
- PrimarySelectionGlyph.cs
- ObjectPersistData.cs
- ArithmeticException.cs
- CurrentTimeZone.cs
- PermissionToken.cs
- WSHttpSecurityElement.cs
- ReferenceList.cs
- DataGridLinkButton.cs
- CompilationPass2Task.cs
- TouchesOverProperty.cs
- EventPrivateKey.cs
- PerformanceCounterPermission.cs
- DataGridViewRowPrePaintEventArgs.cs
- Span.cs
- UnsafeNativeMethods.cs
- PointLight.cs
- FeatureSupport.cs
- DataGridViewCellValidatingEventArgs.cs
- DataGridViewBindingCompleteEventArgs.cs
- UmAlQuraCalendar.cs
- SecurityRuntime.cs
- securitycriticaldata.cs
- PeerNodeTraceRecord.cs
- EntityClassGenerator.cs
- MethodRental.cs
- RuntimeArgumentHandle.cs
- TextShapeableCharacters.cs
- Subtree.cs
- SHA512Cng.cs
- InsufficientExecutionStackException.cs
- IconBitmapDecoder.cs
- WorkflowInstanceExtensionCollection.cs
- PieceDirectory.cs
- UpdateEventArgs.cs
- safelinkcollection.cs
- ConnectorDragDropGlyph.cs
- ComponentChangedEvent.cs
- IdnElement.cs
- ControlValuePropertyAttribute.cs
- FontDriver.cs
- ConfigXmlAttribute.cs
- ProcessManager.cs
- IfAction.cs
- NamedPipeTransportManager.cs