Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Xml / System / Xml / Serialization / SoapAttributeOverrides.cs / 1 / SoapAttributeOverrides.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 SoapAttributeOverrides { Hashtable types = new Hashtable(); ///[To be supplied.] ////// /// public void Add(Type type, SoapAttributes attributes) { Add(type, string.Empty, attributes); } ///[To be supplied.] ////// /// public void Add(Type type, string member, SoapAttributes 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.XmlMultipleAttributeOverrides, type.FullName, member)); } members.Add(member, attributes); } ///[To be supplied.] ////// /// public SoapAttributes this[Type type] { get { return this[type, string.Empty]; } } ///[To be supplied.] ////// /// public SoapAttributes this[Type type, string member] { get { Hashtable members = (Hashtable)types[type]; if (members == null) return null; return (SoapAttributes)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 SoapAttributeOverrides { Hashtable types = new Hashtable(); ///[To be supplied.] ////// /// public void Add(Type type, SoapAttributes attributes) { Add(type, string.Empty, attributes); } ///[To be supplied.] ////// /// public void Add(Type type, string member, SoapAttributes 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.XmlMultipleAttributeOverrides, type.FullName, member)); } members.Add(member, attributes); } ///[To be supplied.] ////// /// public SoapAttributes this[Type type] { get { return this[type, string.Empty]; } } ///[To be supplied.] ////// /// public SoapAttributes this[Type type, string member] { get { Hashtable members = (Hashtable)types[type]; if (members == null) return null; return (SoapAttributes)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
- FilterQuery.cs
- BmpBitmapEncoder.cs
- KnownTypesHelper.cs
- XmlIlTypeHelper.cs
- RoleGroupCollection.cs
- ToolTipAutomationPeer.cs
- ImageDrawing.cs
- SafeTokenHandle.cs
- TreeView.cs
- IntSecurity.cs
- UInt16.cs
- ImportCatalogPart.cs
- RowToFieldTransformer.cs
- CompositeActivityValidator.cs
- CollectionCodeDomSerializer.cs
- NameValueSectionHandler.cs
- altserialization.cs
- mediaclock.cs
- StaticDataManager.cs
- TextEffect.cs
- AuthenticatingEventArgs.cs
- Accessible.cs
- MemoryFailPoint.cs
- AnchoredBlock.cs
- ThreadExceptionDialog.cs
- GridViewPageEventArgs.cs
- ByteConverter.cs
- ProcessModuleCollection.cs
- FixedSOMPageElement.cs
- HtmlControl.cs
- AuthenticateEventArgs.cs
- ParentUndoUnit.cs
- MenuItemBinding.cs
- ArrayList.cs
- SiteMapNodeItem.cs
- MiniLockedBorderGlyph.cs
- TokenBasedSetEnumerator.cs
- Ref.cs
- ClientUtils.cs
- OdbcConnectionPoolProviderInfo.cs
- SafeArrayTypeMismatchException.cs
- SerializerWriterEventHandlers.cs
- ResourceCategoryAttribute.cs
- OrderedDictionaryStateHelper.cs
- Geometry.cs
- ToolStripItemImageRenderEventArgs.cs
- EventTrigger.cs
- BitmapEffectDrawingContextWalker.cs
- SourceFileBuildProvider.cs
- HMACMD5.cs
- WbmpConverter.cs
- PreviewKeyDownEventArgs.cs
- CustomPopupPlacement.cs
- XmlUtil.cs
- ObjectPersistData.cs
- EnumType.cs
- DataGridGeneralPage.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- ZipIOExtraFieldElement.cs
- DataGridItemEventArgs.cs
- GeneralTransform2DTo3D.cs
- SiteMembershipCondition.cs
- BatchWriter.cs
- XmlHierarchyData.cs
- JpegBitmapDecoder.cs
- DataListItemCollection.cs
- DeadCharTextComposition.cs
- SHA1Managed.cs
- DecimalFormatter.cs
- MenuAdapter.cs
- DataObject.cs
- Transform3DCollection.cs
- CancelEventArgs.cs
- EnvelopeVersion.cs
- MetadataArtifactLoader.cs
- LinqDataSourceStatusEventArgs.cs
- CultureSpecificCharacterBufferRange.cs
- UseManagedPresentationBindingElement.cs
- Repeater.cs
- ResourcePool.cs
- NativeMethods.cs
- FactoryGenerator.cs
- EntityDataSourceViewSchema.cs
- SqlServer2KCompatibilityAnnotation.cs
- EdmError.cs
- ISAPIWorkerRequest.cs
- SiteMapDataSource.cs
- XsdBuildProvider.cs
- TimestampInformation.cs
- httpapplicationstate.cs
- PageRanges.cs
- Pair.cs
- ProfileManager.cs
- GeneratedContractType.cs
- ByteAnimation.cs
- ReadOnlyDataSource.cs
- Utilities.cs
- CommandField.cs
- ExistsInCollection.cs
- SecurityCriticalDataForSet.cs