by louthy · 9y ago · 0 comments
Although the CLR does allow for them.
Global functions can be emulated:
public static GlobalFuncs
{
public string Greet(string x) => $"Hello, {x}";
}
Elsewhere: using static GlobalFuncs;
public void Test();
{
Greet("HN"); // "Hello, HN"
}