PreconditionsMinElements Method |
Throws if collection has less elements than required.
Namespace:
KSPDev.ProcessingUtils
Assembly:
KSPDev_Utils.2.3 (in KSPDev_Utils.2.3.dll) Version: 2.3 for KSP v1
Syntaxpublic static void MinElements(
IList arg,
int minSize,
string message = null,
Object context = null
)
Request Example
View SourceParameters
- arg
- Type: System.CollectionsIList
The value to check. - minSize
- Type: SystemInt32
The minimum collection size. - message (Optional)
- Type: SystemString
An optional message to present in the error. - context (Optional)
- Type: SystemObject
The optional "owner" object.
ExceptionsException | Condition |
---|
InvalidOperationException | If condition fails. |
See Also