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
- TableProviderWrapper.cs
- precedingsibling.cs
- TreeChangeInfo.cs
- UndirectedGraph.cs
- BindingOperations.cs
- DataGridViewRowEventArgs.cs
- MetadataPropertyvalue.cs
- HtmlSelect.cs
- MergablePropertyAttribute.cs
- ContainerUtilities.cs
- RequiredAttributeAttribute.cs
- SolidColorBrush.cs
- MappingException.cs
- EventMappingSettings.cs
- AppDomainInfo.cs
- XmlFormatMapping.cs
- _AutoWebProxyScriptHelper.cs
- _FixedSizeReader.cs
- IpcServerChannel.cs
- CounterSampleCalculator.cs
- HtmlImage.cs
- HostedHttpTransportManager.cs
- XPathConvert.cs
- OleDbConnection.cs
- SendKeys.cs
- TypeCollectionDesigner.xaml.cs
- ErrorStyle.cs
- XsdSchemaFileEditor.cs
- CompilationPass2Task.cs
- SerialReceived.cs
- FilterQuery.cs
- HttpRuntime.cs
- HostExecutionContextManager.cs
- HttpEncoder.cs
- ExceptionCollection.cs
- MultiByteCodec.cs
- CompModSwitches.cs
- TailCallAnalyzer.cs
- UDPClient.cs
- RuleSetDialog.Designer.cs
- SocketPermission.cs
- AxImporter.cs
- UriPrefixTable.cs
- XmlBaseReader.cs
- HMACSHA384.cs
- PolyBezierSegmentFigureLogic.cs
- Debug.cs
- SpinWait.cs
- X509LogoTypeExtension.cs
- SkewTransform.cs
- ComProxy.cs
- WindowsRichEditRange.cs
- UrlMapping.cs
- DeflateEmulationStream.cs
- CharEnumerator.cs
- PeerNameRecord.cs
- Int32Storage.cs
- SqlNotificationEventArgs.cs
- HttpModuleAction.cs
- DesignTimeTemplateParser.cs
- ToolStripStatusLabel.cs
- RichTextBox.cs
- OwnerDrawPropertyBag.cs
- TreeNodeMouseHoverEvent.cs
- GZipStream.cs
- _ChunkParse.cs
- KeysConverter.cs
- grammarelement.cs
- StaticExtension.cs
- FrameAutomationPeer.cs
- BuiltInPermissionSets.cs
- XmlSchemaExporter.cs
- SystemInfo.cs
- MenuItem.cs
- SspiSafeHandles.cs
- SizeConverter.cs
- WorkflowApplicationCompletedException.cs
- AuthenticationService.cs
- QueueProcessor.cs
- LinqDataSourceHelper.cs
- FreezableDefaultValueFactory.cs
- TableItemStyle.cs
- SqlUdtInfo.cs
- FrugalMap.cs
- DesignerToolboxInfo.cs
- ExecutedRoutedEventArgs.cs
- DocumentApplicationJournalEntry.cs
- ButtonBaseDesigner.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- GradientStopCollection.cs
- ParseNumbers.cs
- WebPartConnectionsCancelVerb.cs
- DrawingGroupDrawingContext.cs
- WindowsTreeView.cs
- SrgsSubset.cs
- WsdlBuildProvider.cs
- AccessDataSource.cs
- X509SubjectKeyIdentifierClause.cs
- BindToObject.cs
- ServicePoint.cs