mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 13:15:07 +00:00
Validation
This commit is contained in:
@@ -85,6 +85,9 @@ namespace ICD.Common.Utils.Extensions
|
|||||||
if (extends == null)
|
if (extends == null)
|
||||||
throw new ArgumentNullException("extends");
|
throw new ArgumentNullException("extends");
|
||||||
|
|
||||||
|
if (count < 1)
|
||||||
|
throw new ArgumentException("Value must be greater or equal to 1", "count");
|
||||||
|
|
||||||
if (count < 2)
|
if (count < 2)
|
||||||
{
|
{
|
||||||
yield return extends;
|
yield return extends;
|
||||||
|
|||||||
Reference in New Issue
Block a user