Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Serialization / SoapAttributeOverrides.cs / 1305376 / 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
- EncoderReplacementFallback.cs
- InputMethodStateChangeEventArgs.cs
- SystemResources.cs
- sqlcontext.cs
- FileLogRecordEnumerator.cs
- TableRow.cs
- FontStyle.cs
- ConnectionProviderAttribute.cs
- HtmlControlDesigner.cs
- CodeStatementCollection.cs
- ICollection.cs
- HostedTransportConfigurationBase.cs
- SchemaHelper.cs
- Sentence.cs
- GradientStop.cs
- ClrProviderManifest.cs
- SystemSounds.cs
- SchemaImporterExtensionElement.cs
- IResourceProvider.cs
- SafeNativeMethods.cs
- ComboBox.cs
- RSAPKCS1KeyExchangeFormatter.cs
- NullableBoolConverter.cs
- ParserHooks.cs
- Merger.cs
- FastEncoder.cs
- TextElementEnumerator.cs
- DataSourceCollectionBase.cs
- FormsIdentity.cs
- Int32Storage.cs
- HexParser.cs
- XsltSettings.cs
- ArrayElementGridEntry.cs
- TypeConverterHelper.cs
- TransportContext.cs
- ExternalCalls.cs
- XNameTypeConverter.cs
- BitmapEffectDrawing.cs
- GZipUtils.cs
- HtmlSelect.cs
- ReadOnlyMetadataCollection.cs
- CanonicalFontFamilyReference.cs
- DockProviderWrapper.cs
- DataGridTableCollection.cs
- EventLogReader.cs
- AsymmetricSignatureDeformatter.cs
- RegistrationServices.cs
- SecureStringHasher.cs
- Model3DGroup.cs
- XmlName.cs
- Operator.cs
- BreakRecordTable.cs
- SmiMetaDataProperty.cs
- EnterpriseServicesHelper.cs
- DataGridViewRowCollection.cs
- GeometryCollection.cs
- RowUpdatedEventArgs.cs
- PropertyGrid.cs
- CharEntityEncoderFallback.cs
- InternalBufferOverflowException.cs
- DragDeltaEventArgs.cs
- CfgParser.cs
- OracleLob.cs
- TemplatedMailWebEventProvider.cs
- FontFamily.cs
- webproxy.cs
- DataBindingExpressionBuilder.cs
- RealizationDrawingContextWalker.cs
- DateTimePickerDesigner.cs
- MDIClient.cs
- XhtmlBasicObjectListAdapter.cs
- ApplicationSecurityManager.cs
- CommandConverter.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ToolStripRendererSwitcher.cs
- ObjectDataSourceMethodEventArgs.cs
- FocusTracker.cs
- GeneralTransform3DTo2DTo3D.cs
- DataSourceConverter.cs
- InternalConfirm.cs
- MimeTypeMapper.cs
- RelationshipEndMember.cs
- __TransparentProxy.cs
- HttpTransportBindingElement.cs
- AuthenticatingEventArgs.cs
- DataBoundControl.cs
- WorkflowFileItem.cs
- SQLBytes.cs
- ComponentDesigner.cs
- ValueChangedEventManager.cs
- ComAdminInterfaces.cs
- BehaviorDragDropEventArgs.cs
- MemberAssignmentAnalysis.cs
- HMACSHA384.cs
- StrokeNodeEnumerator.cs
- SchemaTableOptionalColumn.cs
- EdmFunction.cs
- XmlConvert.cs
- LocalFileSettingsProvider.cs
- SqlConnectionManager.cs