mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-01-11 19:44:55 +00:00
Validation
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user