Posts by Carlos Roberto • 1 point
1 post
-
0
votes3
answers546
viewsA: Convert char to integer in C#
you must use Tostring() not to use ASC code and then Tryparse to verify that it is integer. string value = "123"; foreach (var c in value) { short digito; if(Int16.TryParse(c.ToString(),out digito))…