Code:
/ 4.0 / 4.0 / 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.] ///// 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
- AuthenticateEventArgs.cs
- IdleTimeoutMonitor.cs
- CategoryGridEntry.cs
- UpdateCompiler.cs
- InlineCollection.cs
- XmlILStorageConverter.cs
- ObjectItemNoOpAssemblyLoader.cs
- DbProviderFactories.cs
- DbgUtil.cs
- TypeConverterAttribute.cs
- DataGridViewDataErrorEventArgs.cs
- DesignerPerfEventProvider.cs
- ProfilePropertySettings.cs
- ListViewItem.cs
- UnlockInstanceAsyncResult.cs
- RemotingSurrogateSelector.cs
- WorkingDirectoryEditor.cs
- SqlUserDefinedAggregateAttribute.cs
- CharacterHit.cs
- ExpressionsCollectionConverter.cs
- BitmapMetadata.cs
- Models.cs
- WsatServiceAddress.cs
- OciEnlistContext.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- ParameterToken.cs
- ActivityValidationServices.cs
- UpdateManifestForBrowserApplication.cs
- SectionVisual.cs
- HelpKeywordAttribute.cs
- RegexBoyerMoore.cs
- DetailsViewInsertedEventArgs.cs
- CapabilitiesAssignment.cs
- XamlSerializerUtil.cs
- UserPrincipalNameElement.cs
- DocumentReference.cs
- VerificationException.cs
- MembershipValidatePasswordEventArgs.cs
- TargetException.cs
- XmlSignatureManifest.cs
- AutomationPeer.cs
- PageBreakRecord.cs
- RectAnimationUsingKeyFrames.cs
- Gdiplus.cs
- ArcSegment.cs
- LineGeometry.cs
- PolyBezierSegment.cs
- HandlerBase.cs
- XsltException.cs
- Cursors.cs
- HierarchicalDataBoundControl.cs
- HashLookup.cs
- _HeaderInfo.cs
- Parser.cs
- messageonlyhwndwrapper.cs
- ArraySegment.cs
- ProfileManager.cs
- COM2ColorConverter.cs
- ListItemConverter.cs
- ProgramPublisher.cs
- ValidationSummaryDesigner.cs
- RecognizerInfo.cs
- SqlCacheDependencySection.cs
- ProbeDuplexAsyncResult.cs
- TextViewDesigner.cs
- StylusSystemGestureEventArgs.cs
- DesignerHelpers.cs
- HWStack.cs
- WpfWebRequestHelper.cs
- Button.cs
- RequiredFieldValidator.cs
- HierarchicalDataSourceControl.cs
- MemberAccessException.cs
- MonikerProxyAttribute.cs
- MetadataItemSerializer.cs
- ConnectionManagementElementCollection.cs
- BitmapSourceSafeMILHandle.cs
- SQLStringStorage.cs
- Rotation3D.cs
- HtmlTableCell.cs
- DesignTimeDataBinding.cs
- EntitySqlQueryCacheKey.cs
- EditingCoordinator.cs
- AssemblyAttributesGoHere.cs
- ProfilePropertySettingsCollection.cs
- DiscoveryInnerClientAdhoc11.cs
- MessagePartSpecification.cs
- XmlNamespaceDeclarationsAttribute.cs
- SyndicationSerializer.cs
- TemplateParser.cs
- DrawingImage.cs
- StringSource.cs
- DisplayInformation.cs
- RuntimeConfigLKG.cs
- LabelDesigner.cs
- Vertex.cs
- RegisteredDisposeScript.cs
- CallSite.cs
- BoundsDrawingContextWalker.cs
- StringUtil.cs