Gets the type's generic collection type if it implements IEnumerable{T}, or otherwise the type itself.

public static Type SingleType(PropertyInfo propertyInfo)
Returns:
Type

Parameters

propertyInfo PropertyInfo

The property info object to return the single type for.

In this article