I am trying to parse, a string property "Employee.Age" that is bonded to an input HTML tag with @bind="Employee.Age" directive. In debug its value is inside single quotes like this '37'. It must be inside double quotes like this "37" as all string values in c#. When the string value in this single quoted format, double.parse(Employee.Age) throws exception. But when it is in its correct format with double quotes it parses the string to double successfully.