Entries Attribute

EntriesAttribute Class

List of entries to populate IList or IDictionary properties with.

Syntax

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

Member Details

EntriesAttribute Constructor

List of entries to populate IList or IDictionary properties with.

Syntax

public EntriesAttribute (params object[] entries)

Parameters

entries

Remarks

Example

C# Example

            [Entries("King", "Queen", "Rook", "Bishop", "Knight", "Pawn")]
        public IDictionary<string, ClusterResource> GamePieces;
    [Entries("<1,2,3>", "<2.5,3.6,4.6>")]        public IList<Sansar.Vector> GamePieces;        </pre></td></tr></tbody></table>

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

Locked Field

Locks the IDictionary or IList properties so entries can not be added or removed. Syntax public Locked Remarks Requirements Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0

|

Last updated