Си диез / Говнокод #7312 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
Bool IsNumber (string str) {
return (str.Replace ("0", "").Replace ("1", "").Replace ("2", "").Replace ("3", "").Replace ("4", "").Replace ("5", "").Replace ("6", "").Replace ("7", "").Replace ("8", "").Replace ("9", "").Length == 0);
}

http://bash.org.ru/quote/396194

Запостил: 1_and_0 1_and_0, (Updated )

Комментарии (15) RSS

Добавить комментарий

Из-за тебя ушел bormand, guest!

    А не использовать ли нам bbcode?


    8