mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 12:07:05 +00:00
Validation
This commit is contained in:
parent
f27f17445e
commit
2bbb7aa2b7
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue