Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0637.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 512fc7e9c25bedf582c73917a1a7144a9a88179d (plain)
1
2
3
4
5
6
7
8
9
10
11
// cs0637.cs: The FieldOffset attribute is not allowed on static or const fields
// Line: 10

using System;
using System.Runtime.InteropServices;

[StructLayout(LayoutKind.Explicit)]
struct GValue {
	[FieldOffset (4)]
        public static int value = 3;
}