get a class with string c# code example
Example: c# get class name as string
// in c# 6.0 you can use nameof(ClassName)
// in older versions you may use typeof(ClassName).Name
// example:
public static class ClassName
{
public static void PrintName => Console.WriteLine(nameof(ClassName));
}