







|
| EPPlus 3.0 |
| ArgumentExtensions..::.IsInRange<(Of <(T>)>) Method |
| ArgumentExtensions Class See Also Send Feedback |
Throws an ArgumentOutOfRangeException if the value of the argument is out of the supplied range
Namespace:
OfficeOpenXml.Utils
Assembly:
EPPlus (in EPPlus.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax
| C# |
|---|
public static void IsInRange<T>( this IArgument<T> argument, T min, T max, string argumentName ) where T : IComparable |
| Visual Basic (Declaration) |
|---|
<ExtensionAttribute> _ Public Shared Sub IsInRange(Of T As IComparable) ( _ argument As IArgument(Of T), _ min As T, _ max As T, _ argumentName As String _ ) |
| Visual C++ |
|---|
[ExtensionAttribute] public: generic<typename T> where T : IComparable static void IsInRange( IArgument<T>^ argument, T min, T max, String^ argumentName ) |
Parameters
- argument
- Type: OfficeOpenXml.Utils..::.IArgument<(Of <(T>)>)
The argument to check
- min
- Type: T
Min value of the supplied range
- max
- Type: T
Max value of the supplied range
- argumentName
- Type: System..::.String
parameter/argument name
Type Parameters
- T
- Type implementing IComparable
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentOutOfRangeException |
