Hi friends,in this post i would like to explain Converting.in C#.Net.
* Working with Convert class is called as Converting.
* Methods under Convert class:
Convert.ToChar(...)
Convert.ToByte(...)
Convert.ToString(...)
Convert.ToBoolean(...)
.
.
.
Convert.ToInt16(...)
Convert.ToInt32(...)
Convert.ToInt64(...)
Example on Converting:
Static void main(...)
{
int i= 50;
Char c=Convert.ToChar(i);
Console.WriteLine(c);
}
Thank You...
* Working with Convert class is called as Converting.
* Methods under Convert class:
Convert.ToChar(...)
Convert.ToByte(...)
Convert.ToString(...)
Convert.ToBoolean(...)
.
.
.
Convert.ToInt16(...)
Convert.ToInt32(...)
Convert.ToInt64(...)
Example on Converting:
Static void main(...)
{
int i= 50;
Char c=Convert.ToChar(i);
Console.WriteLine(c);
}
Thank You...