Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / gtest-friend-01-lib.cs
1 // Compiler options: -t:library
2 using System;
3 using System.Runtime.CompilerServices;
4
5 [assembly: InternalsVisibleTo ("gtest-friend-05")]
6 [assembly: InternalsVisibleTo ("gtest-friend-06")]
7 [assembly: InternalsVisibleTo ("gtest-friend-07")]
8 [assembly: InternalsVisibleTo ("gtest-friend-08")]
9
10 public class FriendClass
11 {
12         // Static members
13         
14         internal static int StaticFriendField;
15         
16         internal static int StaticFriendProperty {
17                 get {
18                         return 1;
19                 }
20         }
21
22         internal static int StaticFriendMethod ()
23         {
24                 return 2;
25         }
26
27         // Instance members
28         
29         internal int InstanceFriendField;
30         
31         internal int InstanceFriendProperty {
32                 get {
33                         return 1;
34                 }
35         }
36
37         internal int InstanceFriendMethod () 
38         {
39                 return 2;
40         }
41
42         // Nested classes
43         internal class NestedInternalClass
44         {
45         }
46
47         protected internal class NestedProtectedInternalClass
48         {
49         }
50 }
51
52 //
53 // This is an internal class
54 //
55 class InternalFriendClass
56 {
57 }
58