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

cs0636.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3b09bd7603c3ef3adbe02597faf70d2a6614aa69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS0636: The FieldOffset attribute can only be placed on members of types marked with the StructLayout(LayoutKind.Explicit)
// Line: 10

using System;
using System.Runtime.InteropServices;

namespace CS0636 {
	struct GValue {
		public string name;
		[ FieldOffset (4) ] public int value;
	}
	
	class Tests {
		public static void Main () {
		}
	}
}