1 // Compiler options: -target:library 2 3 using System.Runtime.CompilerServices; 4 using System; 5 6 [assembly:InternalsVisibleTo("gtest-433")] 7 8 namespace Blah { 9 10 // internal by default 11 class Class1 12 { Test()13 public void Test() 14 { 15 Console.WriteLine("Class1.Test"); 16 } 17 } 18 19 // public type with internal member 20 public class Class2 21 { Test()22 internal void Test() 23 { 24 Console.WriteLine("Class2.Test"); 25 } 26 27 internal enum Citrus { 28 Lemon, 29 Lime, 30 Orange 31 } 32 } 33 34 } 35