SyntaxFix
Write A Post
Hire A Developer
Questions
public static T Runner<T>(Func<T> funcToRun) { //Do stuff before running function as normal return funcToRun(); }
Usage:
var ReturnValue = Runner(() => GetUser(99));