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#
19698 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#
148454 hits
Convert
int
to
double
in
C#
137312 hits
Convert
double
to
float
in
C#
117169 hits
Convert
int
to
short
in
C#
104217 hits
Convert
string
to
long
in
C#
90920 hits
Convert
int
to
decimal
in
C#
83648 hits
Convert
int
to
float
in
C#
80583 hits
Convert
double
to
long
in
C#
78538 hits
Convert
byte
to
int
in
C#
62502 hits
Convert
long
to
string
in
C#
61975 hits
Convert
long
to
int
in
C#
61736 hits
Convert
string
to
short
in
C#
57969 hits
Convert
byte
to
char
in
C#
55858 hits
Convert
string
to
ulong
in
C#
55623 hits
Convert
float
to
int
in
C#
51067 hits
Convert
int
to
ushort
in
C#
50868 hits
Convert
string
to
ushort
in
C#
48993 hits
Convert
float
to
byte[]
in
C#
43256 hits
Convert
byte[]
to
decimal
in
C#
42108 hits
Convert
long
to
double
in
C#
41287 hits