Because of language design:
Using static makes extension methods declared in the specified type
available for extension method lookup. However, the names of the
extension methods are not imported into scope for unqualified
reference in code.
More Related Contents:
- Can I add extension methods to an existing static class?
- How do I use the C#6 “Using static” feature?
- Why is it impossible to declare extension methods in a generic static class?
- What are the uses of “using” in C#?
- What’s a “static method” in C#?
- in a “using” block is a SqlConnection closed on return or exception?
- How do I use Moq to mock an extension method?
- Impossible to use ref and out for first (“this”) parameter in Extension methods?
- C# : What if a static method is called from multiple threads?
- Why doesn’t Include have any effect?
- Will the dynamic keyword in C#4 support extension methods?
- How is performance affected by an unused using directive?
- Can I “multiply” a string (in C#)?
- Why can’t I call an extension method from a base class of the extended type?
- yield return statement inside a using() { } block Disposes before executing
- Extension method on enumeration, not instance of enumeration
- Questions about Entity Framework Context Lifetime
- C# static class constructor
- AddRange to a Collection
- Is it possible to force the use of “using” for disposable classes?
- Extension method priority
- Is it appropriate to extend Control to provide consistently safe Invoke/BeginInvoke functionality?
- Using extension methods in .NET 2.0?
- ASP.NET C# Static Variables are global?
- Warm-up when calling methods in C#
- using statement FileStream and / or StreamReader – Visual Studio 2012 Warnings
- Are static members of a generic class tied to the specific instance?
- Using various types in a ‘using’ statement (C#)
- Doesn’t C# Extension Methods allow passing parameters by reference?
- Why static fields initialization occurs before the static constructor?