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: 1a0ed8fb2e750a0d838d086c886820a5a8e852d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// CS0636: The FieldOffset attribute can only be placed on members of types marked with the StructLayout(LayoutKind.Explicit)

using System;
using System.Runtime.InteropServices;

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