Search results for 'Convert.ToInt64'. 1 post(s) found.

  1. 2009/09/04 How to convert text string to integer ?
2009/09/04 08:01

How to convert text string to integer ?


C# provides an excellerent static instance can Convert various types. You can easily get the wanted reult by Convert Class. Because It's a static instance, you don't need to declare instance.

Following is the example to example to Convert from text String to Integer.

string a = "1024";
int b;

b = Convert.ToInt32(a);

Trackback 0 Comment 0

Trackback : Cannot send a trackbact to this post.