I've read that the size of char or of the System.Char under .NET is 2
bytes.
Then when I do:
int char_len = Marshal.SizeOf( Type.GetType("S ystem.Char"));
char_len would be 2!
Instead the value is 1!
Where is the error?
bytes.
Then when I do:
int char_len = Marshal.SizeOf( Type.GetType("S ystem.Char"));
char_len would be 2!
Instead the value is 1!
Where is the error?
Comment