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#
19527 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#
146715 hits
Convert
int
to
double
in
C#
136170 hits
Convert
double
to
float
in
C#
116146 hits
Convert
int
to
short
in
C#
102935 hits
Convert
string
to
long
in
C#
89884 hits
Convert
int
to
decimal
in
C#
82654 hits
Convert
int
to
float
in
C#
79459 hits
Convert
double
to
long
in
C#
77299 hits
Convert
byte
to
int
in
C#
61738 hits
Convert
long
to
string
in
C#
61273 hits
Convert
long
to
int
in
C#
60873 hits
Convert
string
to
short
in
C#
57033 hits
Convert
byte
to
char
in
C#
54875 hits
Convert
string
to
ulong
in
C#
54619 hits
Convert
float
to
int
in
C#
50295 hits
Convert
int
to
ushort
in
C#
49598 hits
Convert
string
to
ushort
in
C#
48126 hits
Convert
float
to
byte[]
in
C#
42479 hits
Convert
byte[]
to
decimal
in
C#
41295 hits
Convert
long
to
double
in
C#
40493 hits