In .NET, if there is a class with a method Foo<T>(T t)(without restrictions) and a Foo method (string s), the call Foo("test")invokes Foowhich accepts string. All this is good and good if overloading is stringnot an extension method, in which case the universal version is always called. Is there a way around the problem, or am I out of luck?
source
share