Answers for "c# convert to binary array"

C#
1

c# get binary array from int

byte[] bytes = BitConverter.GetBytes(i);
Posted by: Guest on March-27-2020
1

c# to binary

int value = 8;
string binary = Convert.ToString(value, 2);
// binary to base 10
int value = Convert.ToInt32("1101", 2)
Posted by: Guest on May-30-2020

Code answers related to "c# convert to binary array"

C# Answers by Framework

Browse Popular Code Answers by Language