Table of Contents

Class LazyEncodedStringValidators

Namespace
Ubiquity.NET.InteropHelpers
Assembly
Ubiquity.NET.InteropHelpers.dll

Utility extensions to validate a LazyEncodedString

public static class LazyEncodedStringValidators
Inheritance
LazyEncodedStringValidators
Inherited Members

Remarks

These are extension methods to allow use of the CallerArgumentExpressionAttribute on the LazyEncodedString instance. Otherwise there is no way to get the name/expression that is tested.

Methods

ThrowIfNullOrEmpty(LazyEncodedString?, string?)

Throws an exception if the string is null or empty

ThrowIfNullOrWhiteSpace(LazyEncodedString?, string?)

Throws an exception if the string is null or empty