Код: Выделить всё
Error CS1503 Argument 1: cannot convert from 'method group' to 'System.Action'Код: Выделить всё
using System;
public class Program {
void EraseGoodBlocks(bool OverridePreviousTests, ref bool[,] DeviceResults) {
ForAllDevicesResults(eraser, ref DeviceResults);
void eraser(byte BoardNo, byte DeviceNo, ref bool[,] device_results) {}
}
void ForAllDevicesResults(Action action, ref bool[,] result){
for (byte Board = 0; Board < 4; Board++){
for (byte Device = 0; Device < 16; Device++){
action(Board, Device, result);
}
}
}
}
Подробнее здесь: https://stackoverflow.com/questions/786 ... -byte-bool