Once again C# 6.0 brings lots of small features which helps writing cleaner and more understandable code. Static using statements is another such feature, which allows to import static members directly into scope.

So where is this relevant? An example of this could be the Math class. It becomes redundant to prefix methods by class name such as Math.Sqrt, especially if you make extensive use it.

using System.Math; 

public class Point 
{ 
    public double Dist 
    { 
        get { return Math.Sqrt(x * x + y * y); } 
    } 
    // Do other stuff.. 
}

With C# 6.0 static using statements does not only refer to namespaces but also static classes. Thereby it puts their static members directly into scope.

C# 6.0 – Static using statements

Below is the above example where the members are imported directly into scope and without prefixing.

using static System.Math; 

public class Point 
{ 
    public double Dist 
    { 
        get { return Sqrt(x * x + y * y); } 
    } 
    // Do other stuff.. 
}

This could (hopefully would) essentially simplify the code if you imagine some more complex scenarios. An use case of this could be if you make a library.

That’s it for now!