How to use "using static" with generic classes?

298 views Asked by At

C# has an using static directive since C# 6.0 which is allows to includes more specific things (like classes, interfaces etc.) than namespaces. Well, I tried to include generic type class (System.Collections.Generic.List<T> to be clear). I used using static System.Collections.Generic.List<T>; and program failed. Is there a way to include generic type classes by using using static directive?

0

There are 0 answers