C# Reflection Invoke - Object of Type 'XXX' Cannot Be Converted to type 'System.Object[]'
问题 I have created an instance called input that is of type: public class TestInput { public int TesTInt { get; set; } } I use this in this function: public static class TestClass { public static string TestFunction() { var testInput = new TestInput(); string res = ServicesManager.Execute<string>((object) testInput); return res; } } The Execute function is here: public static OUT Execute<OUT>(object input) where OUT : class { var method = //getting method by reflection object[] arr = new object[]