mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
19 lines
398 B
C#
19 lines
398 B
C#
// cs0625.cs: `cs0625.GValue.name': Instance field types marked with StructLayout(LayoutKind.Explicit) must have a FieldOffset attribute
|
|
// Line: 11
|
|
|
|
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace cs0625 {
|
|
[StructLayout(LayoutKind.Explicit)]
|
|
struct GValue {
|
|
public string name;
|
|
[ FieldOffset (4) ] public int value;
|
|
}
|
|
|
|
class Tests {
|
|
public static void Main () {
|
|
}
|
|
}
|
|
}
|