ArgumentEmtpyGuard Class

Summary

string> argument validator.
Namespace
oehen.arguard
Base Types
  • object
graph BT Type-->Base0["object"] Type["ArgumentEmtpyGuard"] class Type type-node

Syntax

public static class ArgumentEmtpyGuard

Methods

Name Value Summary
ThrowIfIsNullOrEmpty(string, string) string
Throws an System.ArgumentNullException if the argument is null or empty.
static
ThrowIfIsNullOrWhiteSpace(string, string) string
Throws an System.ArgumentNullException if the argument is null or whitespace.
static

Extension Methods

Name Value Summary
ThrowIfNotTypeOf<T>(string) T
Throws an System.InvalidOperationException if argument is not type of T.
GitHub