ConvertDataTypes
.com
Convert data types programming in one click !
Languages :
C
-
C++
-
Objective C
-
Java
-
JavaScript
-
Python
-
C#
-
VB
-
VB.net
Convert :
bool
byte
byte[]
char
decimal
double
float
int
long
sbyte
short
string
uint
ulong
ushort
To :
bool
byte
byte[]
char
decimal
double
float
int
long
sbyte
short
string
uint
ulong
ushort
Convert
byte[]
to
string
in
C#
19117 hits
byte[] vIn = new byte[]{'F','O','O'};
string vOut = System.Text.Encoding.UTF8.GetString(vIn);
/*
Note : if the byte array is encoded with another encoding,
replace UTF8 by :
System.Text.Encoding.ASCII;
System.Text.Encoding.BigEndianUnicode;
System.Text.Encoding.Unicode;
System.Text.Encoding.UTF32;
System.Text.Encoding.UTF7;
System.Text.Encoding.UTF8;
System.Text.Encoding.Default : based on the Windows API GetACP
which returns the Windows ANSI code page identifier for the
operating system
*/
The most viewed convertions in C#
Convert
int
to
long
in
C#
142497 hits
Convert
int
to
double
in
C#
133730 hits
Convert
double
to
float
in
C#
113727 hits
Convert
int
to
short
in
C#
99781 hits
Convert
string
to
long
in
C#
86813 hits
Convert
int
to
decimal
in
C#
79353 hits
Convert
int
to
float
in
C#
76826 hits
Convert
double
to
long
in
C#
73823 hits
Convert
byte
to
int
in
C#
60275 hits
Convert
long
to
string
in
C#
60086 hits
Convert
long
to
int
in
C#
59426 hits
Convert
string
to
short
in
C#
55406 hits
Convert
byte
to
char
in
C#
53072 hits
Convert
string
to
ulong
in
C#
52517 hits
Convert
float
to
int
in
C#
49009 hits
Convert
int
to
ushort
in
C#
46930 hits
Convert
string
to
ushort
in
C#
46112 hits
Convert
float
to
byte[]
in
C#
40302 hits
Convert
byte[]
to
decimal
in
C#
39980 hits
Convert
long
to
double
in
C#
38863 hits