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
- MemberInitExpression.cs
- Triangle.cs
- DataKeyArray.cs
- TextEditorDragDrop.cs
- CookieParameter.cs
- SortExpressionBuilder.cs
- FirstMatchCodeGroup.cs
- RegexCharClass.cs
- OleDbInfoMessageEvent.cs
- DeploymentExceptionMapper.cs
- WebConfigurationFileMap.cs
- WebControlsSection.cs
- ThaiBuddhistCalendar.cs
- CallContext.cs
- HuffmanTree.cs
- RectangleConverter.cs
- ReadWriteSpinLock.cs
- CodeNamespace.cs
- CompilerState.cs
- ResXBuildProvider.cs
- FixedTextSelectionProcessor.cs
- WorkflowRuntimeServiceElement.cs
- TextCompositionManager.cs
- ConnectionConsumerAttribute.cs
- ServiceProviders.cs
- ToolStripOverflowButton.cs
- XPathDescendantIterator.cs
- DispatcherTimer.cs
- SecurityHelper.cs
- UnicastIPAddressInformationCollection.cs
- AuthorizationRuleCollection.cs
- ViewDesigner.cs
- URIFormatException.cs
- propertytag.cs
- ClientScriptManager.cs
- LocalizabilityAttribute.cs
- AccessViolationException.cs
- BadImageFormatException.cs
- GrammarBuilderPhrase.cs
- DataReaderContainer.cs
- DependencyPropertyConverter.cs
- SqlDataSourceStatusEventArgs.cs
- AddingNewEventArgs.cs
- WorkflowTerminatedException.cs
- BinaryCommonClasses.cs
- DrawingServices.cs
- FormsAuthenticationCredentials.cs
- TableDetailsCollection.cs
- EventData.cs
- RadioButtonAutomationPeer.cs
- Processor.cs
- LinqDataSourceDeleteEventArgs.cs
- FormViewRow.cs
- IndicFontClient.cs
- ColumnWidthChangingEvent.cs
- DuplexSecurityProtocolFactory.cs
- ConversionHelper.cs
- Substitution.cs
- __TransparentProxy.cs
- OdbcTransaction.cs
- Baml6Assembly.cs
- AsyncSerializedWorker.cs
- InternalSafeNativeMethods.cs
- XmlLanguage.cs
- LogSwitch.cs
- PathGeometry.cs
- XmlValueConverter.cs
- OptimisticConcurrencyException.cs
- UncommonField.cs
- ScriptingAuthenticationServiceSection.cs
- ClientSponsor.cs
- ExpandSegment.cs
- ProcessHostMapPath.cs
- DocumentSchemaValidator.cs
- Calendar.cs
- VirtualDirectoryMappingCollection.cs
- EntityDataSourceValidationException.cs
- VirtualPathProvider.cs
- SharedStatics.cs
- FileDetails.cs
- HttpException.cs
- XmlSchemaAnnotated.cs
- DesignerToolboxInfo.cs
- InputReferenceExpression.cs
- SqlDuplicator.cs
- AssertUtility.cs
- InvokeProviderWrapper.cs
- DataObjectSettingDataEventArgs.cs
- ConfigurationHandlersInstallComponent.cs
- SocketException.cs
- CqlLexer.cs
- OperationCanceledException.cs
- Tuple.cs
- PathStreamGeometryContext.cs
- OleDbParameter.cs
- UriExt.cs
- WindowsTooltip.cs
- DataGridViewImageColumn.cs
- DataControlImageButton.cs
- IDQuery.cs