I have one method like below in class
public void GetData(string test,out List<TestClass> testClass)
{
//Some logic
}
And I am calling above method using reflection like below.
MethodInfo methodInfo = classType.GetMethod("GetData");
ParameterInfo[] parameters = methodInfo.GetParameters();
//Create the instance of class using System.Activator class
object obj = Activator.CreateInstance(classType);
object[] args = new object[] { "XYZ" };
object result= methodInfo.Invoke(obj, new object[] { args });
In above code not able to pass out parameters as arguments,so how can pass it?