How to Call Generic Method Using Reflection in C#

added by DotNetKicks
6/20/2022 1:52:23 PM


In this article, we are going to learn how to call a generic method in C# using reflection. Generic methods are an all-time favorite of library developers for their inherent reusability and type inference benefits. But because of the need for explicit type arguments in most cases (except when type inference occurs implicitly), we can't always make the best use of them in compile time.