I need to write a delegate function that can \'wrap\' some while/try/catch code around a basic UDP call to verify the link. I made it work for Func for a function that has no ar
Are you trying to do this ...
protected void udpCommand(Action command, T value) { while(!linkDownFail) { try { command(value); // etc. } } }
Then it would work like this ...
public void ActionWithInt( int param ) { // some command } Action fp = ActionWithInt; udpCommand( fp, 10 ); // or whatever.