ArgumentEnumerableGuard Class

Summary

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

Syntax

public static class ArgumentEnumerableGuard

Methods

Name Value Summary
ThrowIfIsNullOrEmpty<T>(IEnumerable<T>, string) IEnumerable<T>
Throws an System.ArgumentNullException if the argument is null or empty.
static

Extension Methods

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