Set the Minimum number of array values allowed.
[System.AttributeUsage(System.AttributeTargets.Field)]public class MinEntriesAttribute : AttributeRemarks
Defaults to 0, allowing the array to be empty.
Members at a glance
| Kind | Members |
|---|---|
| Constructors | MinEntriesAttribute |
Constructors
MinEntriesAttribute
public MinEntriesAttribute(int minCount)Set the Minimum number of array values allowed.
| Parameter | Type | Description |
|---|---|---|
minCount | int |
Remarks
Defaults to 0, allowing the array to be empty.
Example
[MinValues(1)]public IList<float>floatList;Generated from the Sansar 47.10.0 client ScriptApi snapshot.