A
[System.AttributeUsage(System.AttributeTargets.Field, AllowMultiple=true)]public class AddEntryAttribute : AttributeMembers at a glance
| Kind | Members |
|---|---|
| Constructors | AddEntryAttribute |
Constructors
AddEntryAttribute
public AddEntryAttribute(object entry)Add an entry to the initial values in the parameter for IList and IDictionary
| Parameter | Type | Description |
|---|---|---|
entry | object | IDictionary: the key of the entry. IList: the default value of the entry. |
Remarks
For IDictionary sets the key only, with no default value.
For IList sets the default value of the entry.
Has no effect for other parameter types.
public AddEntryAttribute(string key, object value)Add an entry to the initial values in the parameter for IList and IDictionary
| Parameter | Type | Description |
|---|---|---|
key | string | IDictionary: the key of the entry. IList: the default value. |
value | object | IDictionary: the default value of the entry. IList: ignored |
Remarks
For IDictionary sets both a key and a default value for that key.
For IList the value is ignored.
Has no effect for other parameter types.
Can be used multiple times to add multiple entries for IDictionary
Generated from the Sansar 47.10.0 client ScriptApi snapshot.