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