ArgumentTypeGuard Class

Summary

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

Syntax

public static class ArgumentTypeGuard

Methods

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

Extension Methods

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