I get an error:
Error CS1503 Argument 1: cannot convert from 'method group' to 'System.Action<byte, byte, bool[*,*]>'
This is my minimal example code which I feel should compile:
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<byte, byte, bool[,]> action, ref bool[,] result){
for (byte Board = 0; Board < 4; Board++){
for (byte Device = 0; Device < 16; Device++){
action(Board, Device, result);
}
}
}
}
Where did I go wrong.