When compiling, it does not give an error, but it gives out not what was expected, that is, when I write the number 7 the compiler infers that it is a string, do not tell me what is the error?
using System; public class Test { public static void M(int i) { Console.WriteLine("это обычное число"); } public static void M(string i) { Console.WriteLine("это строка"); } public static void Main() { var b=Console.ReadLine(); M(b); } }