XmlTextAttribute.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //------------------------------------------------------------------------------
  2. // <copyright file="XmlTextAttribute.cs" company="Microsoft">
  3. // Copyright (c) Microsoft Corporation. All rights reserved.
  4. // </copyright>
  5. // <owner current="true" primary="true">Microsoft</owner>
  6. //------------------------------------------------------------------------------
  7. namespace System.Xml.Serialization {
  8. using System;
  9. /// <include file='doc\XmlTextAttribute.uex' path='docs/doc[@for="XmlTextAttribute"]/*' />
  10. /// <devdoc>
  11. /// <para>[To be supplied.]</para>
  12. /// </devdoc>
  13. [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Parameter | AttributeTargets.ReturnValue)]
  14. public class XmlTextAttribute : System.Attribute {
  15. Type type;
  16. string dataType;
  17. /// <include file='doc\XmlTextAttribute.uex' path='docs/doc[@for="XmlTextAttribute.XmlTextAttribute"]/*' />
  18. /// <devdoc>
  19. /// <para>[To be supplied.]</para>
  20. /// </devdoc>
  21. public XmlTextAttribute() {
  22. }
  23. /// <include file='doc\XmlTextAttribute.uex' path='docs/doc[@for="XmlTextAttribute.XmlTextAttribute1"]/*' />
  24. /// <devdoc>
  25. /// <para>[To be supplied.]</para>
  26. /// </devdoc>
  27. public XmlTextAttribute(Type type) {
  28. this.type = type;
  29. }
  30. /// <include file='doc\XmlTextAttribute.uex' path='docs/doc[@for="XmlTextAttribute.Type"]/*' />
  31. /// <devdoc>
  32. /// <para>[To be supplied.]</para>
  33. /// </devdoc>
  34. public Type Type {
  35. get { return type; }
  36. set { type = value; }
  37. }
  38. /// <include file='doc\XmlTextAttribute.uex' path='docs/doc[@for="XmlTextAttribute.DataType"]/*' />
  39. /// <devdoc>
  40. /// <para>[To be supplied.]</para>
  41. /// </devdoc>
  42. public string DataType {
  43. get { return dataType == null ? string.Empty : dataType; }
  44. set { dataType = value; }
  45. }
  46. }
  47. }