I have two overloaded methods, like below
public class TestClass { public void LoadTest(object param) { Console.WriteLine("Loading object..."); } public void LoadTest(string param) { Console.WriteLine("Loading string..."); } }
After calling this method, as shown below, it will display as Loading Row .... Explain how .net handles this script?
class Program { static void Main(string[] args) { var obj=new TestClass(); obj.LoadTest(null);
source share