'System.Type' does not contain a definition for 'GenericTypeArguments'

As the GenericTypeArguments property was added in .NET 4.5

Is there any way or alternative for this method in .Net 4.0

In my current project I can't use .Net version 4.5.

I want to try this technique

Jon Skeet
people
quotationmark

There's a method Type.GetGenericTypeArguments that has been available for ages. I suspect that at least in most cases, the two are equivalent. I suspect that the property is just part of the reflection API design in .NET 4.5 (to use TypeInfo etc).

people

See more on this question at Stackoverflow