2 // System.Runtime.InteropServices.MarshalAsAttribute.cs
5 // Andreas Nahr (ClassDevelopment@A-SoftTech.com)
10 namespace System.Runtime.InteropServices {
12 [AttributeUsage (AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue)]
13 public sealed class MarshalAsAttribute : Attribute {
14 private UnmanagedType utype;
15 public UnmanagedType ArraySubType;
16 public string MarshalCookie;
17 public string MarshalType;
18 public Type MarshalTypeRef;
19 public VarEnum SafeArraySubType;
21 public short SizeParamIndex;
22 public Type SafeArrayUserDefinedSubType;
24 public MarshalAsAttribute (short unmanagedType) {
25 utype = (UnmanagedType)unmanagedType;
27 public MarshalAsAttribute( UnmanagedType unmanagedType) {
28 utype = unmanagedType;
30 public UnmanagedType Value {