Method ThrowIfNullOrEmpty
- Namespace
- Ubiquity.NET.InteropHelpers
- Assembly
- Ubiquity.NET.InteropHelpers.dll
ThrowIfNullOrEmpty(LazyEncodedString?, string?)
Throws an exception if the string is null or empty
public static void ThrowIfNullOrEmpty(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