Код: Выделить всё
//binary changes depending on imput
binary = "010011010110000101101110";
string first6 = binary.Substring(0, 6);
templist.Add(Convert.ToInt32(first6,2));
string second6 = binary.Substring(6,12);
templist.Add(Convert.ToInt32(second6, 2));
string third6 = binary.Substring(12, 18);
templist.Add(Convert.ToInt32(third6, 2));
string fourth6 = binary.Substring(18, 24);
templist.Add(Convert.ToInt32(fourth6, 2));
Кроме того, мне нужно только 4 отдельных раздела, поэтому я не зацикливал.>
Подробнее здесь: https://stackoverflow.com/questions/798 ... e-argument
Мобильная версия