public static void Main()
Console.WriteLine("nameof: " + nameof(Test.Inner));
Console.WriteLine("typeof: " + typeof(Test.Inner).FullName.Replace("+","."));
Console.WriteLine("NameOfFQN: " + typeof(Test.Inner).NameOfFQN());
static class TypeExtensions
public static string NameOfFQN(this Type type)
return type.FullName.Replace("+",".");