The Labs \ Source Viewer \ SSCLI \ System.Xml.Serialization \ SoapElementAttribute

  1. //------------------------------------------------------------------------------
  2. // <copyright file="SoapElementAttribute.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. // <owner current="true" primary="true">ElenaK</owner>
  15. //------------------------------------------------------------------------------
  16. namespace System.Xml.Serialization
  17. {
  18.     using System;
  19.    
  20.     /// <include file='doc\SoapElementAttribute.uex' path='docs/doc[@for="SoapElementAttribute"]/*' />
  21.     /// <devdoc>
  22.     /// <para>[To be supplied.]</para>
  23.     /// </devdoc>
  24.     [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Parameter | AttributeTargets.ReturnValue)]
  25.     public class SoapElementAttribute : System.Attribute
  26.     {
  27.         string elementName;
  28.         string dataType;
  29.         bool nullable;
  30.        
  31.         /// <include file='doc\SoapElementAttribute.uex' path='docs/doc[@for="SoapElementAttribute.SoapElementAttribute"]/*' />
  32.         /// <devdoc>
  33.         /// <para>[To be supplied.]</para>
  34.         /// </devdoc>
  35.         public SoapElementAttribute()
  36.         {
  37.         }
  38.        
  39.         /// <include file='doc\SoapElementAttribute.uex' path='docs/doc[@for="SoapElementAttribute.SoapElementAttribute1"]/*' />
  40.         /// <devdoc>
  41.         /// <para>[To be supplied.]</para>
  42.         /// </devdoc>
  43.         public SoapElementAttribute(string elementName)
  44.         {
  45.             this.elementName = elementName;
  46.         }
  47.        
  48.         /// <include file='doc\SoapElementAttribute.uex' path='docs/doc[@for="SoapElementAttribute.ElementName"]/*' />
  49.         /// <devdoc>
  50.         /// <para>[To be supplied.]</para>
  51.         /// </devdoc>
  52.         public string ElementName {
  53.             get { return elementName == null ? string.Empty : elementName; }
  54.             set { elementName = value; }
  55.         }
  56.        
  57.         /// <include file='doc\SoapElementAttribute.uex' path='docs/doc[@for="SoapElementAttribute.DataType"]/*' />
  58.         /// <devdoc>
  59.         /// <para>[To be supplied.]</para>
  60.         /// </devdoc>
  61.         public string DataType {
  62.             get { return dataType == null ? string.Empty : dataType; }
  63.             set { dataType = value; }
  64.         }
  65.        
  66.         /// <include file='doc\SoapElementAttribute.uex' path='docs/doc[@for="SoapElementAttribute.IsNullable"]/*' />
  67.         /// <devdoc>
  68.         /// <para>[To be supplied.]</para>
  69.         /// </devdoc>
  70.         public bool IsNullable {
  71.             get { return nullable; }
  72.             set { nullable = value; }
  73.         }
  74.        
  75.     }
  76. }

Developer Fusion