Can we overload a generic method in C#?

(Last Updated On: February 6, 2016)

Answer: Yes, we can overload a generic methods in C# as we overload a normal method in a class.

Sub Question:
Q- In below example which function will get called? OR
Q- If we overload generic method  in C# with specific data type which one would get called?

Answer: Function with specific data type i.e int will be called. Compiler always prefer method with specific data type before generic method having same argument in C#.

In normal function!
Input is: 5