Why does this work?

Posted by Fizz on Stack Overflow See other posts from Stack Overflow or by Fizz
Published on 2010-05-04T13:38:50Z Indexed on 2010/05/04 13:58 UTC
Read the original article Hit count: 313

Filed under:
|
|
|

Why does this work? I'm not complaining, just want to know.

void Test()
{    
    int a = 1;
    int b = 2;

    What<int>(a, b);
    // Why does this next line work?
    What(a, b);
}

void What<T>(T a, T b)
{

}

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET