DotNext by Roman Sakno

<PackageReference Include="DotNext" Version="0.6.0" />

 CollectionType

public static class CollectionType
Provides specialized reflection methods for collection types.
public static Type GetItemType(this Type collectionType, out Type enumerableInterface)

Obtains type of items in the collection type.

public static Type GetItemType(this Type collectionType)

Obtains type of items in the collection type.