C# like functions for classes, namespaces, and packages