MinEntriesAttribute

MinEntriesAttribute Class

Set the Minimum number of array values allowed.

Syntax

[System.AttributeUsage(System.AttributeTargets.Field)]
public class MinEntriesAttribute : Attribute

Remarks

Defaults to 0, allowing the array to be empty.

Requirements

Namespace: Sansar.Script
Assembly: Sansar.Script (in Sansar.Script.dll)
Assembly Versions: 1.0.0.0

Members

See Also: Inherited members from Attribute.

Public Constructors

 
Set the Minimum number of array values allowed.

Member Details

MinEntriesAttribute Constructor

Set the Minimum number of array values allowed.

Syntax

public MinEntriesAttribute (int minCount)

Parameters

minCount

Remarks

Defaults to 0, allowing the array to be empty.

Example

C# Example
            [MinValues(1)]
            public IList<float>floatList;
            

Requirements

Namespace: Sansar.Script
Assembly: Sansar.Script (in Sansar.Script.dll)
Assembly Versions: 1.0.0.0


Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.