Convert binary string into integer

Convert.ToInt32(String, Int32) lets you specify the base:

int output = Convert.ToInt32(input, 2);

Leave a Comment