BusinessMgr
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user