Suppose I have three methods:
void Foo(MemoryStream v) {Console.WriteLine (\"MemoryStream\");} void Foo(Stream v) {Console.WriteLine (\"Stream\");} void Fo
Perhaps something like this:
void Bar() { if(typeof(T) == typeof(Stream)) Foo(default(T) as Stream); //just to show the scenario }