Click or drag to resize

ExtensionMethodsTryRemoveNullItemsT Method

Clean up null values inside of lists.

Namespace:  DustProductions.Core
Assembly:  DustProductions.Core (in DustProductions.Core.dll) Version: (
public static bool TryRemoveNullItems<T>(
	this List<T> list


Type: System.Collections.GenericListT
The list to clean up

Type Parameters

The type of the items in the list

Return Value

Type: Boolean
True if the operation succeeds, false otherwise.

Usage Note

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