Class ArgumentExtensions¶
Namespace: OfficeOpenXml.Utils
Assembly: EPPlus.dll
Extension methods for guarding
Inheritance¶
Inherited Members¶
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()
Methods¶
IsInRange<T>(IArgument<T>, T, T, string)¶
Throws an ArgumentOutOfRangeException if the value of the argument is out of the supplied range
public static void IsInRange<T>(this IArgument<T> argument, T min, T max, string argumentName) where T : IComparable
Parameters¶
argument IArgument<T>
The argument to check
min T
Min value of the supplied range
max T
Max value of the supplied range
argumentName string
parameter/argument name
Type Parameters¶
T
Type implementing IComparable
Exceptions¶
IsNotNull<T>(IArgument<T>, string)¶
Throws an ArgumentNullException if argument is null
Parameters¶
argument IArgument<T>
Argument to check
argumentName string
parameter/argument name
Type Parameters¶
T
Argument type
Exceptions¶
IsNotNullOrEmpty(IArgument<string>, string)¶
Throws an ArgumentNullException if the string argument is null or empty
Parameters¶
Argument to check
argumentName string
parameter/argument name