From: WonYoung Choi Date: Wed, 26 Apr 2017 09:43:58 +0000 (+0900) Subject: Add StructLayout attribute to struct Rect explicitly X-Git-Tag: accepted/tizen/unified/20170426.200459^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F76%2F127176%2F1;p=platform%2Fcore%2Fcsapi%2Felm-sharp.git Add StructLayout attribute to struct Rect explicitly When using property setter in struct type without StructLayout attribute, mcs(Mono C# Compiler) generates incorrect IL. https://bugzilla.xamarin.com/show_bug.cgi?id=55604 Change-Id: Ib77ae509acc076518ad5df3d5138f7b1be1ae829 --- diff --git a/ElmSharp/ElmSharp/Rect.cs b/ElmSharp/ElmSharp/Rect.cs old mode 100755 new mode 100644 index c4b7200..2f7a544 --- a/ElmSharp/ElmSharp/Rect.cs +++ b/ElmSharp/ElmSharp/Rect.cs @@ -15,12 +15,14 @@ */ using System; +using System.Runtime.InteropServices; namespace ElmSharp { /// /// The Rect is a struct that represent rectangluar space. /// + [StructLayout(LayoutKind.Sequential)] public struct Rect : IEquatable { ///