DustProductions.Core API Documentation
DustProductions.Core API Documentation
DustProductions.Core
ExtensionMethods Class
ExtensionMethods Methods
AddNoDuplicates Method
AnnounceComponentAdded Method
CheckIfGameObjectHasComponentOfType(T) Method
ContainsAnything(T) Method
Duplicate Method
EnsureEnding Method
IsApproximately Method
IsNullOrEmpty Method
IsWithinRange Method
IsWithinRangeExclusive Method
IsWithinRangeInclusive Method
Pause Method
Play Method
PlayDelayed Method
PlayOneShot Method
PlayScheduled Method
RoundToNearest Method
SetActive Method
SetEnabled Method
StartCoroutine(T) Method
Stop Method
Trim Method
TrimEnd Method
TrimStart Method
TryAddAtFirstNull(T) Method
TryAddComponent(T) Method
TryGetComponent Method
TryGetComponents Method
TryGetRootParentType(T) Method
TryRemoveItemsOfWrongType Method
TryRemoveNullItems(T) Method
UnPause Method
ExtensionMethods
TryRemoveNullItems
T
Method
Clean up null values inside of lists.
Namespace:
DustProductions.Core
Assembly:
DustProductions.Core (in DustProductions.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
Copy
public
static
bool
TryRemoveNullItems
<T>(
this
List
<T>
list
)
Parameters
list
Type:
System.Collections.Generic
List
T
The list to clean up
Type Parameters
T
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
List
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
ExtensionMethods Class
DustProductions.Core Namespace