Summary
Creates Specification for candidate (collection) length verification.
Syntax
[PublicAPI]
public LengthBetweenSpecification(int minLength, int maxLength, bool linqToEntities = false)
Attributes
| Type |
Description |
| PublicAPI |
|
Parameters
| Name |
Type |
Description |
| minLength |
int |
Minimum candidate length. |
| maxLength |
int |
Maximum candidate length. |
| linqToEntities |
bool |
Is linq to entities (without null check of collection in Expression). |
Return Value
Exceptions
| Type |
Description |
| System.ArgumentException |
Thrown when maxLength is lower than
minLength.
|