/// <summary> /// Requires that a bool is not null /// </summary> /// <param name="val">bool</param> /// <param name="property">Key or Property Name</param> /// <returns></returns> public Contract <T> IsNotNull(bool?val, string property) => IsNotNull(val, property, FluntErrorMessages.IsNotNullErrorMessage(property));
/// <summary> /// Requires an int is not null /// </summary> /// <param name="val"></param> /// <param name="key"></param> /// <returns></returns> public Contract <T> IsNotNull(int?val, string key) => IsNotNull(val, key, FluntErrorMessages.IsNotNullErrorMessage(key));
/// <summary> /// Requires a list is not null /// </summary> /// <typeparam name="TList"></typeparam> /// <param name="val"></param> /// <param name="key"></param> /// <returns></returns> public Contract <T> IsNotNull <TList>(IEnumerable <TList> val, string key) => IsNull(val, key, FluntErrorMessages.IsNotNullErrorMessage(key));