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

UsedPropertyIsKept.cs « Basic « Mono.Linker.Tests.Cases « Tests « linker - github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8adc71f272029fe708a8036f99e0fbc5c2679263 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using Mono.Linker.Tests.Cases.Expectations.Assertions;

namespace Mono.Linker.Tests.Cases.Basic {
	class UsedPropertyIsKept {
		public static void Main ()
		{
			var obj = new B ();
			obj.Prop = 1;
			var val = obj.Prop;
		}

		[KeptMember (".ctor()")]
		class B {
			[Kept]
			[KeptBackingField]
			public int Prop { [Kept] get; [Kept] set; }
		}
	}
}