/// <summary> /// Requires an int is not between /// </summary> /// <param name="val"></param> /// <param name="start"></param> /// <param name="end"></param> /// <param name="key"></param> /// <returns></returns> public Contract <T> IsNotBetween(int val, long start, long end, string key) => IsNotBetween(val, (int)start, (int)end, key, FluntErrorMessages.IsNotBetweenErrorMessage(key, start.ToString(FluntFormats.DateTimeFormat), end.ToString(FluntFormats.DateTimeFormat)));
/// <summary> /// Requires a float is not between /// </summary> /// <param name="val"></param> /// <param name="start"></param> /// <param name="end"></param> /// <param name="key"></param> /// <returns></returns> public Contract <T> IsNotBetween(float val, float start, float end, string key) => IsNotBetween(val, start, end, key, FluntErrorMessages.IsNotBetweenErrorMessage(key, start.ToString(FluntFormats.DateTimeFormat), end.ToString(FluntFormats.DateTimeFormat)));
/// <summary> /// Requires a decimal is not between /// </summary> /// <param name="val"></param> /// <param name="start"></param> /// <param name="end"></param> /// <param name="key"></param> /// <returns></returns> public Contract <T> IsNotBetween(decimal val, double start, double end, string key) => IsNotBetween(val, (decimal)start, (decimal)end, key, FluntErrorMessages.IsNotBetweenErrorMessage(key, start.ToString(FluntFormats.DateTimeFormat), end.ToString(FluntFormats.DateTimeFormat)));
/// <summary> /// Requires a date is not between /// </summary> /// <param name="val">date</param> /// <param name="start">start date</param> /// <param name="end">end date</param> /// <param name="key">Key or Property Name</param> /// <returns></returns> public Contract <T> IsNotBetween(TimeSpan val, TimeSpan start, TimeSpan end, string key) => IsNotBetween(val, start, end, key, FluntErrorMessages.IsNotBetweenErrorMessage(key, start.ToString(), end.ToString()));