In the code below, I pass method B as the action to be performed on objects in the IterateObjects method. I would like to ask if I can explicitly declare a method in an argument, and not pass it by name, something like this: a.IterateObjects(delegate void(string s){//method body}) This is not correct, but I'm sure that saw something like that. Could you please advise? Thanks you
DelTest a = new DelTest();
source share