[Mono-bugs] [Bug 697898] size of structures with StructLayout(LayoutKind.Explicit) -- Attribute

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Apr 15 16:17:00 UTC 2016


Miguel de Icaza <miguel at xamarin.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |miguel at xamarin.com
         Resolution|---                         |FIXED

--- Comment #2 from Miguel de Icaza <miguel at xamarin.com> ---
This now works:

using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Explicit)] public struct f { [FieldOffset (0)]public
uint p; }

class X {static void Main (){
System.Console.WriteLine (Marshal.SizeOf (new f()));

You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-bugs/attachments/20160415/8756e9cd/attachment.html>

More information about the mono-bugs mailing list