Table of Contents

ValidAsNumericOperand Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Core.dll
Source
src/Cuemon.Core/Calculator.cs

ValidAsNumericOperand<T>()

Validates if the specified T is within the allowed range of numeric operands.

public static void ValidAsNumericOperand<T>() where T : struct, IComparable<T>, IEquatable<T>, IConvertible

Type Parameters

T

The type of the value for an operand operation.

Exceptions

TypeArgumentOutOfRangeException

T is outside the range of allowed types.
Allowed types are: byte, decimal, double, short, int, long, sbyte, float, ushort, uint or ulong.