Click or drag to resize

ExtensionMethodsContainsAnythingT Method

Builds on IsNullOrEmpty() by also checking the items in the array itself to see if they are null.

Namespace:  DustProductions.Core
Assembly:  DustProductions.Core (in DustProductions.Core.dll) Version: (
public static bool ContainsAnything<T>(
	this T[] array


Type: T
The array to check for items

Type Parameters

The type of array

Return Value

Type: Boolean
True if the array has any non-null item in it

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . 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