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.
Syntaxpublic EntriesAttribute (params object[] entries)
Parameters
entries
Remarks
Example
C# Example
[Entries("King", "Queen", "Rook", "Bishop", "Knight", "Pawn")] public IDictionary<string, ClusterResource> GamePieces;
[Entries("&lt;1,2,3&gt;", "&lt;2.5,3.6,4.6&gt;")] public IList&lt;Sansar.Vector&gt; 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