linux-packaging-mono/mcs/tests/gtest-friend-01-lib.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

59 lines
894 B
C#

// Compiler options: -t:library
using System;
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo ("gtest-friend-05")]
[assembly: InternalsVisibleTo ("gtest-friend-06")]
[assembly: InternalsVisibleTo ("gtest-friend-07")]
[assembly: InternalsVisibleTo ("gtest-friend-08")]
public class FriendClass
{
// Static members
internal static int StaticFriendField;
internal static int StaticFriendProperty {
get {
return 1;
}
}
internal static int StaticFriendMethod ()
{
return 2;
}
// Instance members
internal int InstanceFriendField;
internal int InstanceFriendProperty {
get {
return 1;
}
}
internal int InstanceFriendMethod ()
{
return 2;
}
// Nested classes
internal class NestedInternalClass
{
}
protected internal class NestedProtectedInternalClass
{
}
}
//
// This is an internal class
//
class InternalFriendClass
{
}