Returns type of IEnumerable if type is IEnumerable.
'Declaration
<ExtensionAttribute()>
<JetBrains.Annotations.CanBeNullAttribute()>
Public Shared Function GetEnumerableType( _
ByVal As Type _
) As Type
'Usage
Dim type As Type
Dim value As Type
value = TypeExtensionR.GetEnumerableType(type)
[Extension()]
[JetBrains.Annotations.CanBeNull()]
public static Type GetEnumerableType(
Type
)
[Extension()]
[JetBrains.Annotations.CanBeNull()]
public:
static Type^ GetEnumerableType(
Type^
)
Parameters
- type
The value of this parameter cannot be null (Nothing in Visual Basic).
Return Value
This method can return null (Nothing in Visual Basic).
Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows
See Also