NullIfEmpty<T>

Grasshopper2.Extensions.ArrayEx

Back to NullIfEmpty<T> on ArrayEx

Examples

using Grasshopper2.Extensions;

// As an extension method
T[] result = array.NullIfEmpty();

// As a static method
result = ArrayEx.NullIfEmpty(array);