F# equivalent of the C# typeof(IEnumerable)
This should work: typedefof<System.IEnumerable<_>> EDIT As Tomas notes, there’s nothing special about the _ wildcard here; F# infers that the type obj is the most general applicable type in this context, so this is the same as using typedefof<System.IEnumerable<obj>>. In some cases the way this works can be a bit of a hindrance, though. For … Read more