AxParameterData.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. //
  2. // System.Windows.Forms.Design.AxParameterData.cs
  3. //
  4. // Author:
  5. // Gert Driesen ([email protected])
  6. //
  7. // (C) 2004 Novell
  8. //
  9. //
  10. // Permission is hereby granted, free of charge, to any person obtaining
  11. // a copy of this software and associated documentation files (the
  12. // "Software"), to deal in the Software without restriction, including
  13. // without limitation the rights to use, copy, modify, merge, publish,
  14. // distribute, sublicense, and/or sell copies of the Software, and to
  15. // permit persons to whom the Software is furnished to do so, subject to
  16. // the following conditions:
  17. //
  18. // The above copyright notice and this permission notice shall be
  19. // included in all copies or substantial portions of the Software.
  20. //
  21. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  22. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  23. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  24. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  25. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  26. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  27. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  28. //
  29. using System.CodeDom;
  30. using System.Reflection;
  31. namespace System.Windows.Forms.Design
  32. {
  33. public class AxParameterData
  34. {
  35. [MonoTODO]
  36. public AxParameterData (ParameterInfo info) : this (info, false)
  37. {
  38. }
  39. [MonoTODO]
  40. public AxParameterData (ParameterInfo info, bool ignoreByRefs)
  41. {
  42. throw new NotImplementedException ();
  43. }
  44. [MonoTODO]
  45. public AxParameterData (string inname, string typeName)
  46. {
  47. throw new NotImplementedException ();
  48. }
  49. [MonoTODO]
  50. public AxParameterData (string inname, Type type)
  51. {
  52. throw new NotImplementedException ();
  53. }
  54. [MonoTODO]
  55. public static AxParameterData[] Convert (ParameterInfo[] infos)
  56. {
  57. throw new NotImplementedException ();
  58. }
  59. [MonoTODO]
  60. public static AxParameterData[] Convert (ParameterInfo[] infos, bool ignoreByRefs)
  61. {
  62. throw new NotImplementedException ();
  63. }
  64. public FieldDirection Direction {
  65. get {
  66. if (this.IsOut)
  67. return FieldDirection.Out;
  68. if (this.IsByRef)
  69. return FieldDirection.Ref;
  70. return FieldDirection.In;
  71. }
  72. }
  73. public bool IsByRef {
  74. get {
  75. return isByRef;
  76. }
  77. }
  78. public bool IsIn {
  79. get {
  80. return isIn;
  81. }
  82. }
  83. public bool IsOptional {
  84. get {
  85. return isOptional;
  86. }
  87. }
  88. public bool IsOut {
  89. get {
  90. return isOut;
  91. }
  92. }
  93. public string Name {
  94. get {
  95. return name;
  96. }
  97. [MonoTODO]
  98. set {
  99. throw new NotImplementedException ();
  100. }
  101. }
  102. public Type ParameterType {
  103. get {
  104. return type;
  105. }
  106. }
  107. [MonoTODO]
  108. public string TypeName {
  109. get {
  110. throw new NotImplementedException ();
  111. }
  112. }
  113. private bool isByRef;
  114. private bool isIn;
  115. private bool isOptional;
  116. private bool isOut;
  117. private string name;
  118. private Type type;
  119. private string typeName;
  120. }
  121. }