本文整理汇总了C#中NumberCheck.IsStrictlyLessThan方法的典型用法代码示例。如果您正苦于以下问题:C# NumberCheck.IsStrictlyLessThan方法的具体用法?C# NumberCheck.IsStrictlyLessThan怎么用?C# NumberCheck.IsStrictlyLessThan使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NumberCheck
的用法示例。
在下文中一共展示了NumberCheck.IsStrictlyLessThan方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: IsStrictlyLessThan
/// <summary>
/// Checks that the checked value is strictly less than the comparand.
/// </summary>
/// <param name="check">
/// The fluent check to be extended.
/// </param>
/// <param name="comparand">
/// Comparand to compare the value to.
/// </param>
/// <returns>
/// A check link.
/// </returns>
/// <exception cref="FluentCheckException">
/// The value is not strictly less than the comparand.
/// </exception>
public static ICheckLink<ICheck<ushort>> IsStrictlyLessThan(this ICheck<ushort> check, ushort comparand)
{
var numberCheckStrategy = new NumberCheck<ushort>(check);
return numberCheckStrategy.IsStrictlyLessThan(comparand);
}
示例2: IsStrictlyLessThan
/// <summary>
/// Checks that the checked value is strictly less than the comparand.
/// </summary>
/// <param name="check">
/// The fluent check to be extended.
/// </param>
/// <param name="comparand">
/// Comparand to compare the value to.
/// </param>
/// <returns>
/// A check link.
/// </returns>
/// <exception cref="FluentCheckException">
/// The value is not strictly less than the comparand.
/// </exception>
public static ICheckLink<ICheck<double>> IsStrictlyLessThan(this ICheck<double> check, double comparand)
{
var numberCheckStrategy = new NumberCheck<double>(check);
return numberCheckStrategy.IsStrictlyLessThan(comparand);
}