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
- WCFModelStrings.Designer.cs
- IdleTimeoutMonitor.cs
- XPathDocumentBuilder.cs
- ExpandSegmentCollection.cs
- EntityDataSourceContainerNameConverter.cs
- ExpressionContext.cs
- Debugger.cs
- StorageMappingItemLoader.cs
- TranslateTransform3D.cs
- ControlCachePolicy.cs
- ProfileSettings.cs
- IDispatchConstantAttribute.cs
- CompositeFontParser.cs
- SplitterEvent.cs
- RedistVersionInfo.cs
- CroppedBitmap.cs
- CommonXSendMessage.cs
- UrlMappingCollection.cs
- SingleAnimation.cs
- CircleHotSpot.cs
- FontInfo.cs
- DocumentEventArgs.cs
- RangeBaseAutomationPeer.cs
- ProxyWebPart.cs
- webclient.cs
- ListMarkerSourceInfo.cs
- BitmapEffectCollection.cs
- RunWorkerCompletedEventArgs.cs
- CodeParameterDeclarationExpressionCollection.cs
- DesignerAutoFormatCollection.cs
- xamlnodes.cs
- PointAnimationBase.cs
- DataControlFieldHeaderCell.cs
- WindowAutomationPeer.cs
- ScrollChrome.cs
- ListViewDataItem.cs
- BufferedReadStream.cs
- GridViewCommandEventArgs.cs
- ReceiveMessageAndVerifySecurityAsyncResultBase.cs
- ConfigurationSchemaErrors.cs
- WorkflowPersistenceService.cs
- TrackingLocation.cs
- MatrixCamera.cs
- _NativeSSPI.cs
- RSAPKCS1SignatureDeformatter.cs
- ContentControl.cs
- MonthCalendar.cs
- ProviderSettings.cs
- MenuScrollingVisibilityConverter.cs
- NetworkAddressChange.cs
- RegexInterpreter.cs
- CreateUserWizardAutoFormat.cs
- XmlAttributeCollection.cs
- HtmlAnchor.cs
- TextDecorationLocationValidation.cs
- ListBoxItem.cs
- UrlMappingCollection.cs
- XmlSchemaCompilationSettings.cs
- ContainerAction.cs
- HttpInputStream.cs
- InsufficientMemoryException.cs
- PerfService.cs
- PasswordPropertyTextAttribute.cs
- TypeAccessException.cs
- StructuredTypeInfo.cs
- OdbcErrorCollection.cs
- WbemException.cs
- EmptyQuery.cs
- GenerateTemporaryAssemblyTask.cs
- TypeNameConverter.cs
- EditCommandColumn.cs
- GCHandleCookieTable.cs
- SystemNetHelpers.cs
- ResourceIDHelper.cs
- EpmContentSerializerBase.cs
- AsyncResult.cs
- LogArchiveSnapshot.cs
- ObjectSecurity.cs
- AssemblyNameProxy.cs
- ColumnHeader.cs
- GPRECTF.cs
- GenerateTemporaryTargetAssembly.cs
- DataDocumentXPathNavigator.cs
- Pen.cs
- DataBoundLiteralControl.cs
- CodeGenHelper.cs
- CommandSet.cs
- SafeFileHandle.cs
- SettingsPropertyNotFoundException.cs
- ProgressiveCrcCalculatingStream.cs
- VirtualDirectoryMapping.cs
- SourceFileBuildProvider.cs
- ScriptingRoleServiceSection.cs
- SqlFlattener.cs
- ServiceProviders.cs
- TextTreeNode.cs
- XmlSchemaSimpleType.cs
- _RegBlobWebProxyDataBuilder.cs
- TreeNodeEventArgs.cs
- NonPrimarySelectionGlyph.cs