XmlReflectionMember.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. //
  2. // System.Xml.Serialization.XmlReflectionMember
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2002
  8. //
  9. namespace System.Xml.Serialization {
  10. public class XmlReflectionMember {
  11. #region Fields
  12. bool isReturnValue;
  13. string memberName;
  14. Type memberType;
  15. bool overrideIsNullable;
  16. SoapAttributes soapAttributes;
  17. XmlAttributes xmlAttributes;
  18. #endregion
  19. #region Constructors
  20. public XmlReflectionMember ()
  21. {
  22. }
  23. public XmlReflectionMember (string name, Type type, XmlAttributes attributes)
  24. {
  25. memberName = name;
  26. memberType = type;
  27. xmlAttributes = attributes;
  28. }
  29. #endregion // Constructors
  30. #region Properties
  31. public bool IsReturnValue {
  32. get { return isReturnValue; }
  33. set { isReturnValue = value; }
  34. }
  35. public string MemberName {
  36. get { return memberName; }
  37. set { memberName = value; }
  38. }
  39. public Type MemberType {
  40. get { return memberType; }
  41. set { memberType = value; }
  42. }
  43. public bool OverrideIsNullable {
  44. get { return overrideIsNullable; }
  45. set { overrideIsNullable = value; }
  46. }
  47. public SoapAttributes SoapAttributes {
  48. get {
  49. if (soapAttributes == null) soapAttributes = new SoapAttributes();
  50. return soapAttributes;
  51. }
  52. set { soapAttributes = value; }
  53. }
  54. public XmlAttributes XmlAttributes {
  55. get {
  56. if (xmlAttributes == null) xmlAttributes = new XmlAttributes();
  57. return xmlAttributes;
  58. }
  59. set { xmlAttributes = value; }
  60. }
  61. #endregion // Properties
  62. }
  63. }