Код: Выделить всё
int divisor = AllMyControls.Take(p => p.IsActiveUserControlChecked).Count();
Код: Выделить всё
AllMyControlsВ VS я получаю следующее:
Код: Выделить всё
Cannot convert lambda expression to type 'int' because it is not a delegate type
Подробнее здесь: https://stackoverflow.com/questions/172 ... -with-linq
Мобильная версия