Does C# has feature like Java\'s static imports?
so instead of writing code like
FileHelper.ExtractSimpleFileName(file)
I could wr
Time marches on... it looks like C# might get static imports in the next version, see http://msdn.microsoft.com/en-us/magazine/dn683793.aspx for a preview.
using System;
using System.Console; // using the Console class here
public class Program
{
public static void Main()
{
// Console.WriteLine is called here
WriteLine("Hello world!");
}
}
The official documentation for the 'Roslyn' C# compiler lists the feature as 'done'