ArgumentDateTimeTodayGuard Class

Summary

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

Syntax

public static class ArgumentDateTimeTodayGuard

Methods

Name Value Summary
ThrowIfIsLaterThanToday(DateTime, string) DateTime
Throws an System.InvalidOperationException if argument is later thanSystem.DateTime.Today.
static
ThrowIfIsLessThanToday(DateTime, string) DateTime
Throws an System.InvalidOperationException if argument is less thanSystem.DateTime.Today.
static
ThrowIfIsNotToday(DateTime, string) DateTime
Throws an System.InvalidOperationException if argument is not System.DateTime.Today.
static

Extension Methods

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