Merge pull request #487 from mayerwin/patch-1
[mono.git] / mcs / class / corlib / System.Reflection.Emit / FieldOnTypeBuilderInst.cs
index 29d31c32875c5996f0bcc4906eaf7036329be4b6..ca3d43d85f94e49655d5a260e903cf04fd51b103 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+#if !FULL_AOT_RUNTIME
 using System;
 using System.Globalization;
 using System.Reflection;
+using System.Runtime.InteropServices;
 
 namespace System.Reflection.Emit
 {
        /*
         * This class represents a field of an instantiation of a generic type builder.
         */
+       [StructLayout (LayoutKind.Sequential)]
        internal class FieldOnTypeBuilderInst : FieldInfo
        {
                #region Keep in sync with object-internals.h
@@ -126,3 +129,4 @@ namespace System.Reflection.Emit
                }
        }
 }
+#endif