2002-01-24 Miguel de Icaza <miguel@ximian.com>
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / MarshalAsAttribute.cs
1 using System;
2
3 namespace System.Runtime.InteropServices {
4
5         [AttributeUsage (AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue)]
6         public sealed class MarshalAsAttribute : Attribute {
7                 private UnmanagedType utype;
8                 public UnmanagedType ArraySubType;
9                 public string MarshalCookie;
10                 public string MarshalType;
11                 public Type MarshalTypeRef;
12                 public VarEnum SafeArraySubType;
13                 public int SizeConst;
14                 public short SizeParamIndex;
15
16                 public MarshalAsAttribute (short unmanagedType) {
17                         utype = (UnmanagedType)unmanagedType;
18                 }
19                 public MarshalAsAttribute( UnmanagedType unmanagedType) {
20                         utype = unmanagedType;
21                 }
22                 public UnmanagedType Value {
23                         get {return utype;}
24                 }
25                 
26         }
27 }