2010-05-13 Rodrigo Kumpera <rkumpera@novell.com>
[mono-project.git] / mcs / tests / gtest-friend-01-lib.cs
blob9c6ca453765cfd4cfd46efcc38345ea4b7d0c128
1 // Compiler options: -t:library
2 using System;
3 using System.Runtime.CompilerServices;
5 [assembly: InternalsVisibleTo ("gtest-friend-05")]
6 [assembly: InternalsVisibleTo ("gtest-friend-06")]
7 [assembly: InternalsVisibleTo ("gtest-friend-07")]
8 [assembly: InternalsVisibleTo ("gtest-friend-08")]
10 public class FriendClass
12 // Static members
14 internal static int StaticFriendField;
16 internal static int StaticFriendProperty {
17 get {
18 return 1;
22 internal static int StaticFriendMethod ()
24 return 2;
27 // Instance members
29 internal int InstanceFriendField;
31 internal int InstanceFriendProperty {
32 get {
33 return 1;
37 internal int InstanceFriendMethod ()
39 return 2;
42 // Nested classes
43 internal class NestedInternalClass
47 protected internal class NestedProtectedInternalClass
53 // This is an internal class
55 class InternalFriendClass