Check out example codes for "convert-integer-to-binary-in-c-sharp". It will help you in understanding the concepts better.

Code Example 1

int value = 8;
string binary = Convert.ToString(value, 2);

Learn ReactJs, React Native from akashmittal.com