If I call an overloaded method, say Convert.ToSingl e and the argument I pass is of generic parameter type T, which overloaded method will this call get bound to?
Here is the code snippet:
The compiler does not seem to care, may be because there exists an overload which takes an "object" type argument, but I am hoping this gets bound at run-time to the appropriate overload based on the actual type of arg1.
Prasanna.
Here is the code snippet:
Code:
internal void SomeMethod<T>(T arg1) { ... float fValue = Convert.ToSingle(arg1); ... }
Prasanna.
Comment