AddEntryAttribute

AddEntryAttribute Class

A

Syntax

[System.AttributeUsage(System.AttributeTargets.Field, AllowMultiple=true)]
public class AddEntryAttribute : Attribute

See Also

Remarks

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

Members

See Also: Inherited members from Attribute.

Public Constructors

 
Add an entry to the initial values in the parameter for IList and IDictionary
 
Add an entry to the initial values in the parameter for IList and IDictionary

Member Details

AddEntryAttribute Constructor

Add an entry to the initial values in the parameter for IList and IDictionary

Syntax

public AddEntryAttribute (object entry)

See Also

Parameters

entry
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.

Requirements

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

AddEntryAttribute Constructor

Add an entry to the initial values in the parameter for IList and IDictionary

Syntax

public AddEntryAttribute (string key, object value)

See Also

Parameters

key
IDictionary: the key of the entry. IList: the default value.
value
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

Requirements

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


Was this article helpful?
0 out of 1 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.