/// <summary> /// Requires an int is lower than /// </summary> /// <param name="val">val</param> /// <param name="comparer">comparer</param> /// <param name="key">Key or Property Name</param> /// <returns></returns> public Contract <T> IsLowerThan(int val, long comparer, string key) => IsLowerThan(val, comparer, key, FluntErrorMessages.IsLowerThanErrorMessage(key, comparer.ToString()));
/// <summary> /// Requires a decimal is lower than /// </summary> /// <param name="val">val</param> /// <param name="comparer">comparer</param> /// <param name="key">Key or Property Name</param> /// <returns></returns> public Contract <T> IsLowerThan(decimal val, float comparer, string key) => IsLowerThan(val, comparer, key, FluntErrorMessages.IsLowerThanErrorMessage(key, comparer.ToString()));
/// <summary> /// Requires a list count is lower than /// </summary> /// <typeparam name="TList"></typeparam> /// <param name="val"></param> /// <param name="comparer"></param> /// <param name="key"></param> /// <returns></returns> public Contract <T> IsLowerThan <TList>(IEnumerable <TList> val, int comparer, string key) => IsLowerThan(val, comparer, key, FluntErrorMessages.IsLowerThanErrorMessage(key, comparer.ToString()));
/// <summary> /// Requires a date is lower than /// </summary> /// <param name="val">val</param> /// <param name="comparer">comparer</param> /// <param name="key">Key or Property Name</param> /// <returns></returns> public Contract <T> IsLowerThan(DateTime val, DateTime comparer, string key) => IsLowerThan(val, comparer, key, FluntErrorMessages.IsLowerThanErrorMessage(key, comparer.ToString(FluntFormats.DateTimeFormat)));
/// <summary> /// Requires a date is lower than /// </summary> /// <param name="val">val</param> /// <param name="comparer">comparer</param> /// <param name="key">Key or Property Name</param> /// <returns></returns> public Contract <T> IsLowerThan(TimeSpan val, TimeSpan comparer, string key) => IsLowerThan(val, comparer, key, FluntErrorMessages.IsLowerThanErrorMessage(key, comparer.ToString()));