Thu Dec 20 15:46:31 CET 2001 Paolo Molaro <lupus@ximian.com>
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / MarshalAsAttribute.cs
diff --git a/mcs/class/corlib/System.Runtime.InteropServices/MarshalAsAttribute.cs b/mcs/class/corlib/System.Runtime.InteropServices/MarshalAsAttribute.cs
new file mode 100755 (executable)
index 0000000..1bbe7cf
--- /dev/null
@@ -0,0 +1,25 @@
+using System;
+
+namespace System.Runtime.InteropServices {
+       public sealed class MarshalAsAttribute : Attribute {
+               private UnmanagedType utype;
+               public UnmanagedType ArraySubType;
+               public string MarshalCookie;
+               public string MarshalType;
+               public Type MarshalTypeRef;
+               public VarEnum SafeArraySubType;
+               public int SizeConst;
+               public short SizeParamIndex;
+
+               public MarshalAsAttribute (short unmanagedType) {
+                       utype = (UnmanagedType)unmanagedType;
+               }
+               public MarshalAsAttribute( UnmanagedType unmanagedType) {
+                       utype = unmanagedType;
+               }
+               public UnmanagedType Value {
+                       get {return utype;}
+               }
+               
+       }
+}