Table of Contents

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 LazyEncodedString

String to test

exp string

Argument expression that is calling this test [Normally supplied by compiler]

Exceptions

ArgumentException

The provided string is empty

ArgumentNullException

The provided string is null