Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- NotCondition.cs
- UnSafeCharBuffer.cs
- CapabilitiesUse.cs
- Package.cs
- MatrixKeyFrameCollection.cs
- ArgumentOutOfRangeException.cs
- WorkflowRuntimeElement.cs
- QilLoop.cs
- CopyNodeSetAction.cs
- CharacterBufferReference.cs
- ScriptingRoleServiceSection.cs
- XamlContextStack.cs
- Context.cs
- ContentDisposition.cs
- _NestedSingleAsyncResult.cs
- Transform.cs
- XmlIterators.cs
- MarkupExtensionParser.cs
- XmlILIndex.cs
- WebPartCatalogAddVerb.cs
- ColorEditor.cs
- PeerValidationBehavior.cs
- MasterPage.cs
- GenericWebPart.cs
- Models.cs
- MultipartContentParser.cs
- HostProtectionPermission.cs
- ProviderException.cs
- Color.cs
- MappingException.cs
- InstanceCreationEditor.cs
- FrameworkElementAutomationPeer.cs
- WindowsBrush.cs
- Propagator.cs
- MetadataException.cs
- RequestNavigateEventArgs.cs
- ButtonPopupAdapter.cs
- BrushProxy.cs
- BitmapScalingModeValidation.cs
- MenuTracker.cs
- MostlySingletonList.cs
- SpellCheck.cs
- ObjectDataSource.cs
- ProcessModelInfo.cs
- ConversionValidationRule.cs
- MessagePropertyVariants.cs
- ReferentialConstraint.cs
- Exceptions.cs
- GridItem.cs
- NamespaceDisplay.xaml.cs
- KeyPullup.cs
- ImageBrush.cs
- BackStopAuthenticationModule.cs
- ContentTextAutomationPeer.cs
- Logging.cs
- GeometryConverter.cs
- InternalConfigSettingsFactory.cs
- ApplicationHost.cs
- CallbackException.cs
- TCPClient.cs
- FieldBuilder.cs
- ReachFixedPageSerializer.cs
- TraceContextRecord.cs
- InputElement.cs
- OracleBFile.cs
- StorageMappingFragment.cs
- UDPClient.cs
- WebPartVerb.cs
- StreamSecurityUpgradeProvider.cs
- Rect3DConverter.cs
- ResourceProviderFactory.cs
- MetaModel.cs
- AutoResetEvent.cs
- ObjectParameterCollection.cs
- Column.cs
- StandardTransformFactory.cs
- StorageEntityTypeMapping.cs
- ChtmlFormAdapter.cs
- EventManager.cs
- httpapplicationstate.cs
- NullRuntimeConfig.cs
- DataGridViewSelectedRowCollection.cs
- WhitespaceRuleReader.cs
- RepeatBehavior.cs
- BitmapMetadataBlob.cs
- embossbitmapeffect.cs
- ValidationService.cs
- TraceLevelHelper.cs
- WindowsEditBox.cs
- TreeNodeClickEventArgs.cs
- StringSource.cs
- XmlTextAttribute.cs
- WindowVisualStateTracker.cs
- SqlReorderer.cs
- ConfigsHelper.cs
- EventsTab.cs
- RuleInfoComparer.cs
- AdjustableArrowCap.cs
- OutputCacheSettings.cs
- RoutedEventArgs.cs