Hi All, I have one doubt regarding casting.
public void Test(out T a, out T b)
{
object d,e;
d = 10;
e = 35;
Console.WriteLine(d.GetType());
a = (T)d;
b = (T)e;
}
Here d.getType() will return System.int32. so my question is why cant we directly code something like a=(T)10; I am not getting it properly.pls help. Thanks.