Validation

This commit is contained in:
Chris Cameron
2017-08-09 15:47:44 -04:00
parent f27f17445e
commit 2bbb7aa2b7

View File

@@ -85,6 +85,9 @@ namespace ICD.Common.Utils.Extensions
if (extends == null)
throw new ArgumentNullException("extends");
if (count < 1)
throw new ArgumentException("Value must be greater or equal to 1", "count");
if (count < 2)
{
yield return extends;