BusinessMgr

This commit is contained in:
Andy Howard
2024-11-26 11:35:04 +00:00
parent 804a3bd853
commit 48348d64b5
19 changed files with 247 additions and 261 deletions
@@ -66,7 +66,7 @@ namespace Sarand.Net.Standard.Base.Utils
/// <summary>Does the list have any entries.</summary>
public static bool IsEmpty (this ICollection<String> values)
{
return (values.Count == 0);
return !values.Any();
}
/// <summary>Case-insensitive contains.</summary>
public static bool ContainsCI (this IEnumerable<String> values, String value)
@@ -207,6 +207,7 @@ namespace Sarand.Net.Standard.Base.Utils
if (!Decimal.TryParse(value, out number)) return false;
return (allowNegative || number >= 0);
}
//-------------------------------------------------------------------
/// <summary>Test for Hex character.</summary>
public static bool IsHex(this char c)