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
- CheckoutException.cs
- Boolean.cs
- InplaceBitmapMetadataWriter.cs
- DecoratedNameAttribute.cs
- BamlTreeMap.cs
- FixedSOMImage.cs
- HorizontalAlignConverter.cs
- dataSvcMapFileLoader.cs
- CompoundFileStorageReference.cs
- SharedDp.cs
- FormViewUpdateEventArgs.cs
- SaveFileDialogDesigner.cs
- VirtualPath.cs
- CollectionDataContractAttribute.cs
- SqlProfileProvider.cs
- RandomNumberGenerator.cs
- XhtmlBasicLinkAdapter.cs
- TransformCollection.cs
- BitmapPalettes.cs
- XmlToDatasetMap.cs
- Pair.cs
- EnumValAlphaComparer.cs
- OdbcParameterCollection.cs
- CodeParameterDeclarationExpression.cs
- ConfigurationManager.cs
- IsolatedStorageException.cs
- MeshGeometry3D.cs
- TypeUnloadedException.cs
- ReadOnlyDictionary.cs
- Registry.cs
- ArgumentException.cs
- bidPrivateBase.cs
- IconConverter.cs
- Lasso.cs
- NativeMethodsOther.cs
- RuleSettings.cs
- SocketElement.cs
- RoleService.cs
- StatusBar.cs
- CodeStatementCollection.cs
- PointAnimationUsingKeyFrames.cs
- WindowsSecurityTokenAuthenticator.cs
- EdgeModeValidation.cs
- ContentType.cs
- GeneralTransform3D.cs
- ErrorTableItemStyle.cs
- DataGridRowDetailsEventArgs.cs
- PostBackTrigger.cs
- PolicyManager.cs
- DecoderBestFitFallback.cs
- fixedPageContentExtractor.cs
- SqlDataRecord.cs
- IOException.cs
- LinqDataSourceView.cs
- SlotInfo.cs
- StylusPointPropertyInfo.cs
- XmlReader.cs
- AuthenticationModuleElement.cs
- Freezable.cs
- ColorPalette.cs
- OracleInternalConnection.cs
- Exception.cs
- Attributes.cs
- PolicyAssertionCollection.cs
- HyperLinkStyle.cs
- EmptyEnumerable.cs
- ContextProperty.cs
- Pen.cs
- ListBoxAutomationPeer.cs
- ListViewUpdateEventArgs.cs
- TraceUtility.cs
- TreeNodeCollectionEditor.cs
- VectorAnimationUsingKeyFrames.cs
- Properties.cs
- input.cs
- PeerNearMe.cs
- XmlReturnWriter.cs
- VirtualPath.cs
- ErrorView.xaml.cs
- ValidationHelper.cs
- PathFigureCollection.cs
- BulletedList.cs
- JournalEntryListConverter.cs
- WsatServiceAddress.cs
- OdbcConnectionHandle.cs
- SelectionEditor.cs
- FontFamilyIdentifier.cs
- AlignmentXValidation.cs
- PathFigure.cs
- InputDevice.cs
- StylusTip.cs
- Rule.cs
- RegexWriter.cs
- ExpressionBuilderContext.cs
- Rotation3D.cs
- CutCopyPasteHelper.cs
- CheckBoxFlatAdapter.cs
- GeneralTransformCollection.cs
- ImmComposition.cs
- ProviderConnectionPointCollection.cs