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
- Array.cs
- WebPartsSection.cs
- SpecialNameAttribute.cs
- Win32PrintDialog.cs
- MessageHeaderDescription.cs
- SqlCacheDependencySection.cs
- Animatable.cs
- SafeNativeMethodsCLR.cs
- MessageTraceRecord.cs
- RealizedColumnsBlock.cs
- UnsafeNativeMethods.cs
- MouseButton.cs
- HostingEnvironment.cs
- OrderedDictionary.cs
- DrawTreeNodeEventArgs.cs
- ToolStripGrip.cs
- ReflectTypeDescriptionProvider.cs
- DataGridViewTextBoxColumn.cs
- Soap.cs
- LogEntryHeaderSerializer.cs
- WindowAutomationPeer.cs
- XmlStringTable.cs
- NativeMethods.cs
- StringAnimationUsingKeyFrames.cs
- ToolStripDropTargetManager.cs
- CanExpandCollapseAllConverter.cs
- ExcCanonicalXml.cs
- DataContract.cs
- ThreadLocal.cs
- UIntPtr.cs
- SqlNode.cs
- GeometryConverter.cs
- TextOptions.cs
- DynamicDataExtensions.cs
- AudioDeviceOut.cs
- WebScriptEnablingBehavior.cs
- DynamicQueryableWrapper.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- DataGridViewCellConverter.cs
- SmiRequestExecutor.cs
- Flowchart.cs
- HttpModuleAction.cs
- ExpressionBuilder.cs
- DataGridViewRowsAddedEventArgs.cs
- AppDomainAttributes.cs
- DrawingContextDrawingContextWalker.cs
- BinaryFormatter.cs
- _NestedMultipleAsyncResult.cs
- GraphicsPathIterator.cs
- MediaTimeline.cs
- HandlerBase.cs
- XmlMemberMapping.cs
- PeerDefaultCustomResolverClient.cs
- TdsValueSetter.cs
- AuthenticatingEventArgs.cs
- SystemIPInterfaceStatistics.cs
- ADConnectionHelper.cs
- BufferedOutputStream.cs
- Vector3D.cs
- ClientBuildManager.cs
- Line.cs
- WeakEventTable.cs
- DropDownButton.cs
- CookieParameter.cs
- TimelineGroup.cs
- SocketInformation.cs
- ChtmlTextWriter.cs
- ListBindingHelper.cs
- NameValueCollection.cs
- TrackingMemoryStream.cs
- TextServicesDisplayAttribute.cs
- XmlSchemaSimpleTypeRestriction.cs
- NamespaceExpr.cs
- HybridWebProxyFinder.cs
- CodePageUtils.cs
- StorageMappingItemCollection.cs
- IncrementalReadDecoders.cs
- ColorConvertedBitmap.cs
- EraserBehavior.cs
- LocalizabilityAttribute.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- DoubleIndependentAnimationStorage.cs
- RegistrySecurity.cs
- LinearKeyFrames.cs
- OleDbError.cs
- TiffBitmapEncoder.cs
- StoreItemCollection.cs
- NetworkInformationException.cs
- FrameworkElement.cs
- HtmlForm.cs
- AdornerHitTestResult.cs
- OpenTypeLayoutCache.cs
- XsltLoader.cs
- TrustSection.cs
- Visual3D.cs
- Exception.cs
- EventLogPermissionEntryCollection.cs
- odbcmetadatafactory.cs
- InstanceHandle.cs
- CompressEmulationStream.cs