1 // cs0647.cs: Error emitting 'MarshalAs' attribute because 'Specified unmanaged type is only valid on fields'
5 using System
.Runtime
.InteropServices
;
9 [DllImport("libname", EntryPoint
= "scumbag")]
10 static extern int scumbag(ref int X
, [MarshalAs(UnmanagedType
.ByValArray
)] ref byte[] fb
);