PreviousNext

Dynamically invoking a generic method with Reflection in .NET C#

by bill-s, 2020-10-19T15:45:27.580Z

In this video, we learn how about dynamically invoking a generic method with reflection in .NET C#. When using a generic method, the generic argument (often referred to as `T`) must be provided as a known type at compile time. However, sometimes you may have a scenario where you must call a generic method using a type that it not known until run time. This can be problematic and usually results in using a large number of if/else statements.

Read More