MaxEntriesAttribute

MaxEntriesAttribute Class

Set the Maximum number of array values allowed.

Syntax

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

Member Details

MaxEntriesAttribute Constructor

Set the Maximum number of IList or IDictionary allowed.

Syntax

public MaxEntriesAttribute (int maxCount)

Parameters

maxCount

Remarks

Example

C# Example

            [MaxValues(1)]
            public IList<float>floatList;
            

Requirements

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



Last updated