📅  最后修改于: 2022-03-11 14:49:11.006000             🧑  作者: Mango
代码示例1
int value = 8;
string binary = Convert.ToString(value, 2);
// binary to base 10
int value = Convert.ToInt32("1101", 2)