EnumerableExtensionsIsNullOrEmptyT(IEnumerableT) Method
Determines whether the specified source is or empty (has no elements).
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
public static bool IsNullOrEmpty<T>(
this IEnumerable<T>? source
)
<ExtensionAttribute>
Public Shared Function IsNullOrEmpty(Of T) (
source As IEnumerable(Of T)
) As Boolean
public:
[ExtensionAttribute]
generic<typename T>
static bool IsNullOrEmpty(
IEnumerable<T>^ source
)
[<ExtensionAttribute>]
static member IsNullOrEmpty :
source : IEnumerable<'T> -> bool
- source IEnumerableT
- The source to check.
- T
- The type of the elements of source.
Boolean if the
source collection is
or empty; otherwise,
.In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableT. 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).