-
Notifications
You must be signed in to change notification settings - Fork 35
M_CodeJam_Collections_CollectionExtensions_IsNullOrEmpty__1
Andrew Koryavchenko edited this page Jun 17, 2018
·
8 revisions
Indicates whether the specified collection is null
or empty.
Namespace: CodeJam.Collections
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public static bool IsNullOrEmpty<T>(
this ICollection<T> collection
)
VB
<ExtensionAttribute>
Public Shared Function IsNullOrEmpty(Of T) (
collection As ICollection(Of T)
) As Boolean
F#
[<ExtensionAttribute>]
static member IsNullOrEmpty :
collection : ICollection<'T> -> bool
- collection
- Type: System.Collections.Generic.ICollection(T)
The collection to test for emptiness.
- T
- [Missing documentation for "M:CodeJam.Collections.CollectionExtensions.IsNullOrEmpty
1(System.Collections.Generic.ICollection{
0})"]
Type: Booleantrue
, if the collection parameter is null
or empty; otherwise, false
.
In Visual Basic and C#, you can call this method as an instance method on any object of type ICollection(T). 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).
CollectionExtensions Class
IsNullOrEmpty Overload
CodeJam.Collections Namespace