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
- SerializationAttributes.cs
- OdbcConnectionOpen.cs
- Configuration.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- __FastResourceComparer.cs
- RequestStatusBarUpdateEventArgs.cs
- XsltSettings.cs
- FontStretches.cs
- TableLayoutRowStyleCollection.cs
- ExtenderControl.cs
- comcontractssection.cs
- ReadOnlyCollectionBuilder.cs
- IdentifierCollection.cs
- CodeFieldReferenceExpression.cs
- FixedLineResult.cs
- PaperSource.cs
- SemanticResultKey.cs
- BoolExpression.cs
- SQLInt64.cs
- EntityTypeEmitter.cs
- CompiledIdentityConstraint.cs
- Pointer.cs
- FormsAuthentication.cs
- GridViewEditEventArgs.cs
- HMACSHA1.cs
- ExportException.cs
- KeyFrames.cs
- MembershipUser.cs
- DataGridColumnHeader.cs
- VisualBrush.cs
- CellPartitioner.cs
- StaticFileHandler.cs
- NotFiniteNumberException.cs
- OutputCacheProfile.cs
- TagPrefixInfo.cs
- SelectionWordBreaker.cs
- BindingMemberInfo.cs
- DataServiceRequest.cs
- ToolStripTextBox.cs
- EasingQuaternionKeyFrame.cs
- BitmapEffectDrawingContextWalker.cs
- NativeMethods.cs
- RoleManagerSection.cs
- DataContractJsonSerializerOperationFormatter.cs
- DiscoveryService.cs
- TraceLevelHelper.cs
- DataBinding.cs
- StateMachineWorkflow.cs
- SspiSafeHandles.cs
- NonVisualControlAttribute.cs
- SkinBuilder.cs
- HTMLTextWriter.cs
- CustomTypeDescriptor.cs
- SetterBaseCollection.cs
- NonBatchDirectoryCompiler.cs
- WebPartConnectionsEventArgs.cs
- DesignerVerb.cs
- ListViewGroupCollectionEditor.cs
- ExpressionEditorAttribute.cs
- SafeRegistryHandle.cs
- TemplatedMailWebEventProvider.cs
- HtmlInputButton.cs
- SqlDataSourceView.cs
- CompoundFileStorageReference.cs
- ECDiffieHellmanPublicKey.cs
- StateBag.cs
- EndpointPerformanceCounters.cs
- FixedTextSelectionProcessor.cs
- ToolboxItemAttribute.cs
- XamlClipboardData.cs
- CodeVariableReferenceExpression.cs
- MessageSmuggler.cs
- x509utils.cs
- ConnectionPointCookie.cs
- QilBinary.cs
- TextBlockAutomationPeer.cs
- LinkDesigner.cs
- HttpRawResponse.cs
- TargetParameterCountException.cs
- DrawingGroup.cs
- XmlChildEnumerator.cs
- XMLSyntaxException.cs
- MembershipSection.cs
- EmbossBitmapEffect.cs
- DiscoveryEndpoint.cs
- LambdaCompiler.Generated.cs
- MatrixUtil.cs
- ControlAdapter.cs
- MasterPage.cs
- SqlWebEventProvider.cs
- XmlDataImplementation.cs
- EntityDataSourceReferenceGroup.cs
- ArraySegment.cs
- ConnectionStringSettingsCollection.cs
- ContainerControl.cs
- ZipIOExtraFieldZip64Element.cs
- EllipticalNodeOperations.cs
- ScrollData.cs
- CompilationLock.cs
- RangeValueProviderWrapper.cs