I have a variable: byte[] var; That I wish to pass to a C program. Normally, I could use something = like: [MarshalAs(UnmanagedType.ByValArray, SizeConst=3D8)] byte[] var; But in my case I do not know the size of the variable until runtime. How = do I get something like this marshalled at runtime? Neale