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
- WorkItem.cs
- TextBlock.cs
- OperationAbortedException.cs
- FunctionQuery.cs
- ArrayList.cs
- EditorPart.cs
- ConsoleEntryPoint.cs
- RewritingPass.cs
- FieldTemplateFactory.cs
- ApplicationInfo.cs
- MaskedTextBox.cs
- ListControlBuilder.cs
- SelectorItemAutomationPeer.cs
- CqlBlock.cs
- AssemblyResourceLoader.cs
- List.cs
- PointAnimation.cs
- DataGridViewImageCell.cs
- XPathAncestorQuery.cs
- PointAnimation.cs
- DataControlButton.cs
- FigureHelper.cs
- PolicyStatement.cs
- CodeIdentifiers.cs
- OleDbReferenceCollection.cs
- FormsAuthenticationEventArgs.cs
- EventLogRecord.cs
- MetafileHeader.cs
- ValuePatternIdentifiers.cs
- HttpProtocolImporter.cs
- ClockGroup.cs
- TdsParserHelperClasses.cs
- BoundPropertyEntry.cs
- SQLCharsStorage.cs
- SendKeys.cs
- PassportPrincipal.cs
- XPathDocumentNavigator.cs
- ExternalException.cs
- DateTime.cs
- WebHttpSecurityModeHelper.cs
- XmlnsDictionary.cs
- EntryWrittenEventArgs.cs
- ModelVisual3D.cs
- DocumentViewerAutomationPeer.cs
- ActiveXHost.cs
- XmlSchemaGroup.cs
- XhtmlBasicLabelAdapter.cs
- ImportDesigner.xaml.cs
- RenderTargetBitmap.cs
- Variable.cs
- SectionInformation.cs
- ThumbAutomationPeer.cs
- TextServicesLoader.cs
- Brush.cs
- ExpressionBuilder.cs
- SizeAnimationClockResource.cs
- SiteMapDataSource.cs
- CursorConverter.cs
- CompoundFileStreamReference.cs
- XmlEntity.cs
- RowVisual.cs
- PerformanceCounterPermission.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- WebScriptServiceHost.cs
- StyleHelper.cs
- NameTable.cs
- _DigestClient.cs
- XslTransformFileEditor.cs
- OutputCacheProfile.cs
- TextViewSelectionProcessor.cs
- OneOfConst.cs
- EventLogPermissionEntryCollection.cs
- KnownBoxes.cs
- SoapAttributeOverrides.cs
- ConstraintManager.cs
- DataGridColumnDropSeparator.cs
- MDIWindowDialog.cs
- ScalarConstant.cs
- ZoneMembershipCondition.cs
- TemplatedAdorner.cs
- Menu.cs
- ProfileSettingsCollection.cs
- ResourcePermissionBaseEntry.cs
- DiagnosticTrace.cs
- ByteViewer.cs
- XsltCompileContext.cs
- OrthographicCamera.cs
- LinkedResourceCollection.cs
- CopyAction.cs
- EntityKey.cs
- _SingleItemRequestCache.cs
- StorageMappingFragment.cs
- PartDesigner.cs
- SubclassTypeValidatorAttribute.cs
- FocusTracker.cs
- TimeSpanStorage.cs
- ToolStripProgressBar.cs
- PersonalizableTypeEntry.cs
- CssStyleCollection.cs
- AsymmetricSignatureDeformatter.cs