You can use GetGenericTypeArgumentsEx() which is available on all platforms