1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-15 10:22:57 +00:00

Cleaned up order book

This commit is contained in:
Jan Korf
2019-10-21 21:44:51 +02:00
parent 964403d750
commit 3ba0507a79
7 changed files with 55 additions and 137 deletions
+11
View File
@@ -262,6 +262,17 @@ namespace CryptoExchange.Net
if (value == null)
throw new ArgumentException($"No value provided for parameter {argumentName}");
}
/// <summary>
/// Validates a list is not null or empty
/// </summary>
/// <param name="value">The value of the object</param>
/// <param name="argumentName">Name of the parameter</param>
public static void ValidateNotNull<T>(this IEnumerable<T> value, string argumentName)
{
if (value == null || !value.Any())
throw new ArgumentException($"No values provided for parameter {argumentName}");
}
}
}