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
- CompilationUtil.cs
- StorageAssociationTypeMapping.cs
- Interlocked.cs
- MergePropertyDescriptor.cs
- RoleServiceManager.cs
- HttpModuleAction.cs
- SafeFileMappingHandle.cs
- CalendarDateRange.cs
- FixedSOMImage.cs
- FileDialogCustomPlace.cs
- ContactManager.cs
- ButtonFlatAdapter.cs
- InstanceData.cs
- RelatedView.cs
- TraceListeners.cs
- XmlValidatingReader.cs
- AuthorizationRuleCollection.cs
- DataServiceHostFactory.cs
- MatrixKeyFrameCollection.cs
- SchemaMerger.cs
- CodeLabeledStatement.cs
- xmlsaver.cs
- TableStyle.cs
- ImageList.cs
- SinglePageViewer.cs
- StructuredTypeInfo.cs
- ParameterCollection.cs
- ListParaClient.cs
- SplitterEvent.cs
- UIElementPropertyUndoUnit.cs
- DrawingAttributes.cs
- ExceptionList.cs
- VirtualizingStackPanel.cs
- TranslateTransform3D.cs
- SimpleMailWebEventProvider.cs
- DataGridViewIntLinkedList.cs
- DropTarget.cs
- PasswordRecoveryAutoFormat.cs
- ProfileParameter.cs
- NamedPipeAppDomainProtocolHandler.cs
- DesignerActionUIStateChangeEventArgs.cs
- AccessedThroughPropertyAttribute.cs
- FocusTracker.cs
- FormatterConverter.cs
- Transform3DGroup.cs
- BasePattern.cs
- SQLByte.cs
- ToolStripTextBox.cs
- WindowsSysHeader.cs
- XPathConvert.cs
- QilTypeChecker.cs
- CrossContextChannel.cs
- XPathBinder.cs
- GroupQuery.cs
- DataGridTextBox.cs
- _UncName.cs
- SortExpressionBuilder.cs
- MemberDomainMap.cs
- CategoryNameCollection.cs
- InheritedPropertyChangedEventArgs.cs
- ControlBuilderAttribute.cs
- MimeFormReflector.cs
- CrossContextChannel.cs
- WindowsIdentity.cs
- LayeredChannelFactory.cs
- VarRemapper.cs
- Themes.cs
- CodeObjectCreateExpression.cs
- GridViewUpdateEventArgs.cs
- XsltException.cs
- Route.cs
- FrameworkElement.cs
- ListBindingConverter.cs
- FormViewInsertEventArgs.cs
- HtmlLiteralTextAdapter.cs
- PrimaryKeyTypeConverter.cs
- ImageMap.cs
- ObjectMemberMapping.cs
- cookiecollection.cs
- XhtmlBasicLabelAdapter.cs
- RC2.cs
- Activator.cs
- WebPageTraceListener.cs
- CrossContextChannel.cs
- ConnectionPointCookie.cs
- OleDbCommand.cs
- DateTimeOffsetConverter.cs
- FunctionMappingTranslator.cs
- LineSegment.cs
- IndentTextWriter.cs
- OleDbException.cs
- SmiRequestExecutor.cs
- ByteAnimationUsingKeyFrames.cs
- SplineQuaternionKeyFrame.cs
- WindowsListViewSubItem.cs
- NetworkStream.cs
- WebPartEventArgs.cs
- QueryOutputWriter.cs
- BasicBrowserDialog.designer.cs
- TableParaClient.cs