I believe it’s not possible. But you can create a Class with only constants.
public static class GlobalVar
{
public const string MY_CONST = "Test";
}
and then use it like
class Program
{
static void Main()
{
Console.WriteLine(GlobalVar.MY_CONST);
}
}