Skip to content

M_CodeJam_Collections_CollectionExtensions_NotNullNorEmpty__1

andrewvk edited this page Mar 22, 2016 · 8 revisions

CollectionExtensions.NotNullNorEmpty(T) Method (ICollection(T))

[This is preliminary documentation and is subject to change.]

Indicates whether the specified collection is not null nor empty.

Namespace: CodeJam.Collections
Assembly: CodeJam (in CodeJam.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

public static bool NotNullNorEmpty<T>(
	this ICollection<T> collection
)

VB

<ExtensionAttribute>
Public Shared Function NotNullNorEmpty(Of T) ( 
	collection As ICollection(Of T)
) As Boolean

F#

[<ExtensionAttribute>]
static member NotNullNorEmpty : 
        collection : ICollection<'T> -> bool 

Parameters

 

collection
Type: System.Collections.Generic.ICollection(T)
The collection to test.

Type Parameters

 

T
[Missing documentation for "M:CodeJam.Collections.CollectionExtensions.NotNullNorEmpty1(System.Collections.Generic.ICollection{0})"]

Return Value

Type: Boolean
true, if the collection parameter is not null nor empty; otherwise, false.

Usage Note

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).

See Also

Reference

CollectionExtensions Class
NotNullNorEmpty Overload
CodeJam.Collections Namespace

Clone this wiki locally