Skip to content

LengthOutOfRange #327

@ardalis

Description

@ardalis

Add a string guard that supports both a min and max length of the string.

Guard.Against.LengthOutOfRange("abc", 2, 4); // passes
Guard.Against.LengthOutOfRange("a", 2, 4); // throws
Guard.Against.LengthOutOfRange("abcde", 2, 4); // throws

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions