© 2026 Hedgehog Software, LLC
public class MyClass<T1, T2> {} Type myClassType = typeof(MyClass<string, int>); Type myClassGenericType = myClassType.GetGenericTypeDefinition();
myClassGenericType
T1
T2
GenericTypeParameters
RuntimeType
Type