As an example supposing I have an object:
public class myClass
{
public List<byte[]listOfBytes;
public int X;
public int Y;
}
and a method ("op()") whose signature is:
public delegate void ByteOp(byte[] b, int x, int y);
How would I go about creating an Event Handler to execute what
is essentially the inner workings of a foreach similar too:
foreach (byte[] b in listOfBytes)
{
operation(b,x,y); // Do this once per published event
}
??