Table of Contents

ThrowIfGreaterThanOrEqual Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Kernel.dll
Source
src/Cuemon.Kernel/Validator.cs

ThrowIfGreaterThanOrEqual<T>(T, T, string, string)

Validates and throws an ArgumentOutOfRangeException if the specified x is greater than or equal to y.

public static void ThrowIfGreaterThanOrEqual<T>(T x, T y, string paramName, string message = null) where T : struct, IConvertible

Parameters

x T

The first object to compare.

y T

The second object to compare.

paramName string

The name of the parameter that caused the exception.

message string

A message that describes the error.

Type Parameters

T

The type of objects to compare.

Exceptions

ArgumentOutOfRangeException

x is greater than or equal to y.