EntriesAttribute Class
List of entries to populate IList or IDictionary properties with.
Syntax
[System.AttributeUsage(System.AttributeTargets.Field)]
public class EntriesAttribute : Attribute
public class EntriesAttribute : Attribute
Remarks
When used with IDictionary the entries are the keys with no default values.
Requirements
Namespace: Sansar.Script
Assembly: Sansar.Script (in Sansar.Script.dll)
Assembly Versions: 1.0.0.0
Assembly: Sansar.Script (in Sansar.Script.dll)
Assembly Versions: 1.0.0.0
Members
See Also: Inherited members from Attribute.
Public Constructors
|
EntriesAttribute (params object[])
|
List of entries to populate IList or IDictionary properties with. |
Public Fields
Member Details
EntriesAttribute Constructor
List of entries to populate IList or IDictionary properties with.Syntax
public EntriesAttribute (params object[] entries)Parameters
- entries
Remarks
When used with IDictionary the entries are the keys with no default values. When used with IList the entries are the default values. To set an IList of a specific Count with no default values use Sansar.Script.MinEntriesAttributeHas no effect on other parameter types. For Sansar.Vector, Sansar.Quaternion, and Sansar.Colors in IList their default values must be specified in string form.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;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 bool LockedRemarks
Documentation for this section has not yet been entered.Requirements
Namespace: Sansar.Script
Assembly: Sansar.Script (in Sansar.Script.dll)
Assembly Versions: 1.0.0.0
0 Comments