You are still trying to convert a string of alphabetic characters to an integer.
LicenseHolders.Add(new LicenseHolder()
{ MyInt = Convert.ToInt32("MyString" )});
What numeric value do you expect to get from
"MyString"
?
Also, do not use
Convert
, as it crashes your app, use
TryParse
so you can catch the bad inputs.