https://bugzilla.novell.com/show_bug.cgi?id=654054
https://bugzilla.novell.com/show_bug.cgi?id=654054#c0 Summary: Marshal.SizeOf(typeof(char)) returns 2, should return 1. Classification: Mono Product: Mono: Class Libraries Version: SVN Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: CORLIB AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Consider the following program: using System; using System.Runtime.InteropServices; class Test { public static void Main () { Console.WriteLine ("sizeof(char)={0}", sizeof(char)); Console.WriteLine ("Marshal.SizeOf(typeof(char))={0}", Marshal.SizeOf(typeof(char))); } } When run under Mono, output is: sizeof(char)=2 Marshal.SizeOf(typeof(char))=2 When run under .NET, output is: sizeof(char)=2 Marshal.SizeOf(typeof(char))=1 Apparently Marshal.SizeOf() is returning a different value (2 instead of 1). Is this intended? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
