Which of the following code snippets will call a generic method when the type parameter is not known at compile time?
Answer
Correct Answer: MethodInfo method = typeof(Sample).GetMethod("GenericMethod"); MethodInfo generic = method.MakeGenericMethod(myType); generic.Invoke(this, null);
Explanation:
Note: This Question is unanswered, help us to find answer for this one