Support using for static classes, e.g. using static System.Math;
Allow the static keyword to be applied in a using namespace directive, e.g. using static System.Math; allowing static classes to be treated as namespaces and avoid having to fully qualify every method call, i.e. Math.Max becomes just Max
20
votes
1 comment
-
Phillip Trelford
commented
VB.Net lets you do this, i.e. Imports System.Math
Java lets you do this, i.e. import static java.lang.Math.*;
F# can open F# defined Modules (static classes).