1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Mono.Linker.Tests.Cases.DataFlow.Dependencies;
using Mono.Linker.Tests.Cases.Expectations.Assertions;
using Mono.Linker.Tests.Cases.Expectations.Helpers;
using Mono.Linker.Tests.Cases.Expectations.Metadata;
namespace Mono.Linker.Tests.Cases.DataFlow
{
[SetupCompileBefore ("base.dll", new[] { "Dependencies/MemberTypesAllBaseTypeAssembly.cs" })]
[KeptAssembly ("base.dll")]
[SetupLinkerAction ("link", "base")]
[SetupLinkerAction ("copy", "test")]
[KeptTypeInAssembly ("base.dll", "Mono.Linker.Tests.Cases.DataFlow.Dependencies.MemberTypesAllBaseType")]
[KeptMemberInAssembly ("base.dll", "Mono.Linker.Tests.Cases.DataFlow.Dependencies.MemberTypesAllBaseType", new string[] {
".cctor()",
".ctor()",
".ctor(System.Boolean)",
"PublicMethod()",
"PrivateMethod()",
"PublicStaticMethod()",
"PrivateStaticMethod()",
"PublicField",
"PrivateField",
"PublicStaticField",
"PrivateStaticField",
"PublicProperty",
"get_PublicProperty()",
"set_PublicProperty(System.Boolean)",
"PrivateProperty",
"get_PrivateProperty()",
"set_PrivateProperty(System.Boolean)",
"PublicStaticProperty",
"get_PublicStaticProperty()",
"set_PublicStaticProperty(System.Boolean)",
"PrivateStaticProperty",
"get_PrivateStaticProperty()",
"set_PrivateStaticProperty(System.Boolean)",
"PublicEvent",
"add_PublicEvent(System.EventHandler`1<System.EventArgs>)",
"remove_PublicEvent(System.EventHandler`1<System.EventArgs>)",
"PrivateEvent",
"add_PrivateEvent(System.EventHandler`1<System.EventArgs>)",
"remove_PrivateEvent(System.EventHandler`1<System.EventArgs>)",
"PublicStaticEvent",
"add_PublicStaticEvent(System.EventHandler`1<System.EventArgs>)",
"remove_PublicStaticEvent(System.EventHandler`1<System.EventArgs>)",
"PrivateStaticEvent",
"add_PrivateStaticEvent(System.EventHandler`1<System.EventArgs>)",
"remove_PrivateStaticEvent(System.EventHandler`1<System.EventArgs>)",
})]
[KeptTypeInAssembly ("base.dll", "Mono.Linker.Tests.Cases.DataFlow.Dependencies.MemberTypesAllBaseType/PublicNestedType")]
[KeptMemberInAssembly ("base.dll", "Mono.Linker.Tests.Cases.DataFlow.Dependencies.MemberTypesAllBaseType/PublicNestedType", new string[] { "PrivateMethod()" })]
[KeptTypeInAssembly ("base.dll", "Mono.Linker.Tests.Cases.DataFlow.Dependencies.MemberTypesAllBaseType/PrivateNestedType")]
[KeptMemberInAssembly ("base.dll", "Mono.Linker.Tests.Cases.DataFlow.Dependencies.MemberTypesAllBaseType/PrivateNestedType", new string[] { "PrivateMethod()" })]
[KeptMember (".ctor()")]
public class MemberTypesAllOnCopyAssembly
{
public static void Main ()
{
typeof (TestType).RequiresAll ();
}
[Kept]
[KeptBaseType (typeof (MemberTypesAllBaseType))]
[KeptMember (".ctor()")]
class TestType : MemberTypesAllBaseType
{
}
}
}
|