As I am making a console application I can't seem to get the .Length
to check whether it's empty for an if
statement to work, says that it's "read only".
I can't simply define the value as int
due to using console to retrieve the data.
Console.Write("Enter your Phone Number: ");
phone_number = Console.ReadLine();