I have the following code:
static void foo<T>(this List<T> list, T t)
{
...
}
So in order to call the extension method I'll have to do this:
myList.foo<myType>(myVar);
Is it possible to change my code so that I can call my method like this:
myList.foo(myVar);
For, example the Remove function in List is called without specifying the type (myList.Remove(myVar) and not myList.Remove<myType>(myVar)).