Snippets

Here is your code snippet

Code


hexadecimal to decimal conversion

hexadecimal to decimal conversion

using System;

namespace csharp
{
class Class1
{
static void Main(string[] args)
{
string hexnumber = "ff";
Console.WriteLine(Convert.ToInt32(hexnumber,16));
}
}
}