G
Guest
Hi there,
I am wondering the difference between [Out] attribute and out keywords. Are
they the same or does it serve any different purposes?
I saw the [Out] and out usage in this code, and i had idea, does it had
differences.
[DllImport("kernel32.dll", SetLastError=true)]
internal static extern Boolean ReadFile(IntPtr hFile, [Out] Byte[] lpBuffer,
UInt32 nNumberOfBytesToRead, out UInt32 nNumberOfBytesRead, IntPtr
lpOverlapped);
Any help please?
Thanks.
I am wondering the difference between [Out] attribute and out keywords. Are
they the same or does it serve any different purposes?
I saw the [Out] and out usage in this code, and i had idea, does it had
differences.
[DllImport("kernel32.dll", SetLastError=true)]
internal static extern Boolean ReadFile(IntPtr hFile, [Out] Byte[] lpBuffer,
UInt32 nNumberOfBytesToRead, out UInt32 nNumberOfBytesRead, IntPtr
lpOverlapped);
Any help please?
Thanks.