Table of Contents

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 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