Calling a method as a method parameter but not executing?
问题 Hi I am trying to implement a method that will take a method (any method in the grand scheme of things) as a parameter. I want this parameter method to run when in the method that called it only, If the method that passes into this method has a return value then it should still be able to return its value. I want to measure the performance of the methods that are passed in. return Performance(GetNextPage(eEvent, false)); public static T Performance<T>(T method) { T toReturn; Stopwatch sw =