Home | .NET Fiddle
Using the Hex, Unicode, Decimal value of the char equivalently:
using System;
public class Program
{
public static void Main()
{
var hexValue = '\x0031';
var chr = Convert.ToChar(hexValue);
Console.WriteLine(chr);
var decimalValue = 49;
chr = Convert.ToChar(decimalValue);
Console.WriteLine(chr);
var achar = '1';
Console.WriteLine(achar);
var unicodeValue = '\u0031';
chr = Convert.ToChar(unicodeValue);
Console.WriteLine(chr);
}
}
Popular Posts
-
Kendo UI applying SUM in footer template kendo ui - KendoUI: Grid Summary values in Footer - Stack Overflow : ", footerTemplate:...
-
MVC grid example ASP.NET MVC Flexigrid sample - CodeProject : 'via Blog this'
-
A possible way of handling distributed transaction for multiple contexts without alleviation to MSDTC??? c# - Entity Framework - Using Trans...
No comments:
Post a Comment