IListExtensionMethodsIsNullOrEmptyT Method |
Determines whether the passed in list is null or empty.
Namespace:
SD.Tools.BCLExtensions.CollectionsRelated
Assembly:
SD.Tools.BCLExtensions (in SD.Tools.BCLExtensions.dll) Version: 1.1.1
Syntax public static bool IsNullOrEmpty<T>(
this IList<T> toCheck
)
<ExtensionAttribute>
Public Shared Function IsNullOrEmpty(Of T) (
toCheck As IList(Of T)
) As Boolean
Parameters
- toCheck
- Type: System.Collections.GenericIListT
the list to check.
Type Parameters
- T
- the type of the elements in the list to check
Return Value
Type:
Booleantrue if the passed in list is null or empty, false otherwise
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IListT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also