Answers for "cannot convert int to numeric c#"

C#
2

how to convert string to int in c#

string a = ("2");
int b = Convert.ToInt16(a)
Posted by: Guest on September-05-2020
5

convert string to number C#

int x = 0;

Int32.TryParse(TextBoxD1.Text, out x);
Posted by: Guest on April-19-2020

C# Answers by Framework

Browse Popular Code Answers by Language