Working with Converting

Converting can be used convert from any datatype into any other datatype.
 
Methods of Convert Class:
 
Convert
. ToChar(value)
Convert
.ToByte(value)
Convert
.ToBoolean(value)
Convert
.ToString(value)
Convert
.ToDateTime(value)
Convert
.Toint16(value)
Convert
.Toint32(value)
Convert
.Toint64(value)
 

Example:
 
On_Converting(Button Click Event)
int
i = 97;
char
c = Convert.ToChar(i);
MessageBox.Show(c.ToString());v
Ebook Download
View all
FileInfo in C#
Read by 9.7k people
Download Now!
Learn
View all