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
- PolyQuadraticBezierSegmentFigureLogic.cs
- TypographyProperties.cs
- DataGridViewComboBoxColumn.cs
- StatusBarDrawItemEvent.cs
- RNGCryptoServiceProvider.cs
- FixedNode.cs
- MetadataHelper.cs
- WebConfigManager.cs
- ObjectListCommand.cs
- ControllableStoryboardAction.cs
- NullToBooleanConverter.cs
- Attributes.cs
- securitycriticaldata.cs
- RunInstallerAttribute.cs
- XmlBinaryWriterSession.cs
- PtsCache.cs
- CustomLineCap.cs
- GroupBoxDesigner.cs
- DigitShape.cs
- MediaEntryAttribute.cs
- HttpRequestCacheValidator.cs
- FontSource.cs
- DBPropSet.cs
- HtmlEncodedRawTextWriter.cs
- DesignTableCollection.cs
- ContentElement.cs
- SecondaryIndexDefinition.cs
- SmtpNegotiateAuthenticationModule.cs
- RepeatBehavior.cs
- TextContainerChangedEventArgs.cs
- ObjectItemAttributeAssemblyLoader.cs
- CompModSwitches.cs
- CatalogZoneAutoFormat.cs
- FocusManager.cs
- Listen.cs
- AutomationIdentifierGuids.cs
- StreamingContext.cs
- CharStorage.cs
- UseManagedPresentationBindingElementImporter.cs
- SqlTypesSchemaImporter.cs
- DataGridColumnFloatingHeader.cs
- WizardPanel.cs
- StyleModeStack.cs
- ContainerVisual.cs
- ResourcePart.cs
- DataColumnPropertyDescriptor.cs
- EdmComplexPropertyAttribute.cs
- Int32AnimationUsingKeyFrames.cs
- AuthenticationManager.cs
- HttpListenerContext.cs
- DBAsyncResult.cs
- MetafileHeader.cs
- HttpListenerRequest.cs
- coordinatorfactory.cs
- Rule.cs
- ProfilePropertySettingsCollection.cs
- _ConnectOverlappedAsyncResult.cs
- SingleResultAttribute.cs
- TypeLoader.cs
- TypeToStringValueConverter.cs
- TextContainerHelper.cs
- DbgUtil.cs
- StringReader.cs
- SiteMapSection.cs
- DispatcherTimer.cs
- Wizard.cs
- XmlSecureResolver.cs
- ContentTextAutomationPeer.cs
- Int64Animation.cs
- ImageCodecInfo.cs
- ProviderIncompatibleException.cs
- WebHeaderCollection.cs
- MaskedTextProvider.cs
- TrustLevel.cs
- ViewGenResults.cs
- _Events.cs
- ToolStripContainerActionList.cs
- BindingMemberInfo.cs
- ProcessHost.cs
- hresults.cs
- ArraySubsetEnumerator.cs
- DataShape.cs
- MeshGeometry3D.cs
- RequestQueryProcessor.cs
- DataGridViewCellConverter.cs
- ConfigXmlAttribute.cs
- Font.cs
- EntityDataSource.cs
- GraphicsState.cs
- ExtensionWindowHeader.cs
- DataControlImageButton.cs
- IUnknownConstantAttribute.cs
- ObjectSet.cs
- Control.cs
- RuleDefinitions.cs
- RawStylusActions.cs
- GestureRecognizer.cs
- XmlStreamStore.cs
- PersonalizationStateInfo.cs
- XmlSerializationGeneratedCode.cs