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
More Related Contents:
- Should ‘using’ directives be inside or outside the namespace?
- Method can be made static, but should it?
- Getting all types in a namespace via reflection
- How can I get all classes within a namespace?
- .NET: Determine the type of “this” class in its static method
- Can’t find System.Windows.Media namespace?
- namespace naming conventions
- the name does not exist in the namespace clr-namespace
- Should ‘using’ directives be inside or outside the namespace in C#?
- Is there a way to force a C# class to implement certain static functions?
- Should the folders in a solution match the namespace?
- Partial class in different namespaces
- TAP global exception handler
- How do I use WebRequest to access an SSL encrypted site using HTTPS?
- Reading a CSV file in .NET?
- Does .NET provide an easy way convert bytes to KB, MB, GB, etc.?
- C# dictionary – one key, many values
- Currency format for display
- What’s the best strategy for Equals and GetHashCode?
- Two-way / bidirectional Dictionary in C#?
- Weak event handler model for use with lambdas
- Is there Windows system event on active window changed?
- Discovering derived types using reflection
- How to read a .NET Guid into a Java UUID
- System.Net.WebClient unreasonably slow
- Using HashSet in C# 2.0, compatible with 3.5
- C#: Seeking PNG Compression algorithm/library [closed]
- How do I tell if a type is a “simple” type? i.e. holds a single value
- How to capture mouse wheel on panel?
- C# System.RegEx matches LF when it should not