[Mono-list] Marshal.SizeOf() vs. sizeof operator
Marcus
mathpup@mylinuxisp.com
Thu, 14 Aug 2003 00:37:12 -0500
Didn't you mean to write "c.GetType()" below? When I use
char myChar = 'A';
Console.WriteLine("myChar is of type {0}", myChar.GetType());
Under mono (recent CVS), I do get, "myChar is of type System.Char"
On Wednesday 13 August 2003 1:49 am, Giuseppe Greco wrote:
>
> Let's analyze anoter example:
>
> char myChar = 'A';
> Console.WriteLine("myChar is of type {0}", c.GetType());
>
> The code above should produce the message
>
> "myChar is of type System.Char"
>
> Well, with Mono on Linux I get the right type name, while
> with .NET on Windows I get
>
> "myChar is of type System.Byte[]"
>