Method ThrowIfNullOrWhiteSpace
- Namespace
- Ubiquity.NET.InteropHelpers
- Assembly
- Ubiquity.NET.InteropHelpers.dll
ThrowIfNullOrWhiteSpace(LazyEncodedString?, string?)
Throws an exception if the string is null or empty
public static void ThrowIfNullOrWhiteSpace(this LazyEncodedString? self, string? exp = null)
Parameters
self
LazyEncodedStringString to test
exp
stringArgument expression that is calling this test [Normally supplied by compiler]
Exceptions
- ArgumentException
The provided string is empty
- ArgumentNullException
The provided string is null