Summary
Creates MinLengthSpecification<T>
:
Checks if length of candidate is lower than or equal to Max value.
- Namespace
- FluentSpecification
- Containing Type
- Specification
Syntax
[PublicAPI]
[NotNull]
public static IComplexSpecification<T> MaxLength<T>(int maxLength) where T : IEnumerable
Attributes
Type | Description |
---|---|
PublicAPI | |
NotNull |
Type Parameters
Name | Description |
---|---|
T | Type of candidate to verify (collection or string). |
Parameters
Name | Type | Description |
---|---|---|
maxLength | int | Maximum candidate length. |
Return Value
Type | Description |
---|---|
I |
New complex Specification . |