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#
19740 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#
149075 hits
Convert
int
to
double
in
C#
137820 hits
Convert
double
to
float
in
C#
117621 hits
Convert
int
to
short
in
C#
104671 hits
Convert
string
to
long
in
C#
91301 hits
Convert
int
to
decimal
in
C#
84026 hits
Convert
int
to
float
in
C#
81055 hits
Convert
double
to
long
in
C#
79017 hits
Convert
byte
to
int
in
C#
62779 hits
Convert
long
to
string
in
C#
62275 hits
Convert
long
to
int
in
C#
62036 hits
Convert
string
to
short
in
C#
58298 hits
Convert
byte
to
char
in
C#
56177 hits
Convert
string
to
ulong
in
C#
55961 hits
Convert
float
to
int
in
C#
51374 hits
Convert
int
to
ushort
in
C#
51265 hits
Convert
string
to
ushort
in
C#
49315 hits
Convert
float
to
byte[]
in
C#
43615 hits
Convert
byte[]
to
decimal
in
C#
42396 hits
Convert
long
to
double
in
C#
41540 hits