YNullReferenceExceptionCheckNullOrEmptyT(IEnumerableT, String) Method
|
Check if the given enumerable is null or empty.
Namespace: Upsilon.Common.LibraryAssembly: Upsilon.Common.Library (in Upsilon.Common.Library.dll) Version: 2.2.2+14985a67b419f90e14e6b1bde61d18cf6cf12b27
Syntax public static IEnumerable<T> CheckNullOrEmpty<T>(
IEnumerable<T>? enumerable,
string referenceName
)
Parameters
- enumerable IEnumerableT
- The enumerable to check.
- referenceName String
- The name of the reference.
Type Parameters
- T
Return Value
IEnumerableTThe given enumerable.
See Also