Creating a method that takes a generic method and its variadic parameters as arguments and call it i - C#