Can I import a static class as a namespace to call its methods without specifying the class name in C#?

The feature you were looking for was added within C# 6.0

It’s called “Using Static”.

Here’s the link for more explanations and examples:
https://msdn.microsoft.com/en-us/magazine/dn879355.aspx

Leave a Comment