using System;
public class Program
{
public static void Main()
Bar.DoStuff();
// Bar.DoOtherStuff(); // Cannot be done due to protection level
Bar.DoStuffAndOtherStuff(); // note that this public static method calls a private static method from the inner class
}
private static class Bar
public static void DoStuff()
Console.WriteLine("Test");
public static void DoStuffAndOtherStuff()
DoStuff();
DoOtherStuff();
private static void DoOtherStuff()
Console.WriteLine("other stuff");