Add StructLayout attribute to struct Rect explicitly 76/127176/1 accepted/tizen/unified/20170426.200459 submit/tizen/20170426.094727
authorWonYoung Choi <wy80.choi@samsung.com>
Wed, 26 Apr 2017 09:43:58 +0000 (18:43 +0900)
committerWonYoung Choi <wy80.choi@samsung.com>
Wed, 26 Apr 2017 09:43:58 +0000 (18:43 +0900)
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

ElmSharp/ElmSharp/Rect.cs [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index c4b7200..2f7a544
  */
 
 using System;
+using System.Runtime.InteropServices;
 
 namespace ElmSharp
 {
     /// <summary>
     /// The Rect is a struct that represent rectangluar space.
     /// </summary>
+    [StructLayout(LayoutKind.Sequential)]
     public struct Rect : IEquatable<Rect>
     {
         /// <summary>