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
- TextRangeProviderWrapper.cs
- CodeRemoveEventStatement.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- ComplexPropertyEntry.cs
- TextDecoration.cs
- InstanceHandleReference.cs
- PersonalizableTypeEntry.cs
- ToolboxItemFilterAttribute.cs
- XmlCharType.cs
- XDeferredAxisSource.cs
- TextTabProperties.cs
- WebZone.cs
- GridSplitter.cs
- XPathPatternParser.cs
- Size3DConverter.cs
- OutputCacheSettingsSection.cs
- MetafileHeader.cs
- Stroke.cs
- TreeViewImageKeyConverter.cs
- DetailsViewInsertedEventArgs.cs
- CorrelationManager.cs
- TextLineBreak.cs
- DetailsViewAutoFormat.cs
- DataGridViewCellMouseEventArgs.cs
- TypeResolvingOptionsAttribute.cs
- TypeConverter.cs
- StrokeNodeEnumerator.cs
- SimpleMailWebEventProvider.cs
- TextPointer.cs
- VerificationAttribute.cs
- GroupItemAutomationPeer.cs
- KeyValuePairs.cs
- LZCodec.cs
- DecimalConstantAttribute.cs
- ResourceBinder.cs
- SelectionManager.cs
- SuppressMessageAttribute.cs
- AssemblyAssociatedContentFileAttribute.cs
- AssociationSetEnd.cs
- FormsAuthenticationTicket.cs
- ManualWorkflowSchedulerService.cs
- ReadOnlyCollectionBase.cs
- DBCommand.cs
- CryptoApi.cs
- WebEventTraceProvider.cs
- CurrencyWrapper.cs
- LassoSelectionBehavior.cs
- InternalCache.cs
- CommandBindingCollection.cs
- ListParaClient.cs
- SqlAliasesReferenced.cs
- Selection.cs
- MethodBuilder.cs
- odbcmetadatafactory.cs
- RuleSettingsCollection.cs
- CharacterBuffer.cs
- StylusPlugin.cs
- ModelItemCollection.cs
- StreamInfo.cs
- TextSerializer.cs
- WCFBuildProvider.cs
- Bits.cs
- WhitespaceSignificantCollectionAttribute.cs
- BinaryWriter.cs
- SelectedDatesCollection.cs
- TokenBasedSetEnumerator.cs
- ScrollContentPresenter.cs
- QilPatternFactory.cs
- MaskedTextBox.cs
- ReadWriteSpinLock.cs
- CodeValidator.cs
- MsiStyleLogWriter.cs
- IPHostEntry.cs
- Single.cs
- CodeCastExpression.cs
- ILGenerator.cs
- DataViewSetting.cs
- FastEncoder.cs
- QuaternionAnimation.cs
- SqlPersonalizationProvider.cs
- HybridDictionary.cs
- AutoGeneratedField.cs
- pingexception.cs
- SystemIdentity.cs
- IProvider.cs
- URLBuilder.cs
- DeferredTextReference.cs
- PipelineDeploymentState.cs
- OnOperation.cs
- ZeroOpNode.cs
- XmlName.cs
- SrgsElementFactoryCompiler.cs
- ExtensionElementCollection.cs
- DataGridCaption.cs
- FilterEventArgs.cs
- DefaultSection.cs
- FormsAuthenticationTicket.cs
- FixedPageStructure.cs
- SoapMessage.cs
- FlowDocumentScrollViewer.cs