Sets an object value in the dictionary.
Namespace: Facilita.Fc.RuntimeAssembly: fc_clr (in fc_clr.dll) Version: 9.5.7.98
public void Set(
string key,
Object val
)
public void Set(
string key,
Object val
)
Parameters
- key
- Type: System String
The key to associate with val in the dictionary.
- val
- Type: System Object
The object to be associated with the key in the dictionary.
key is associated with the value in the dictionary.
If the
key already exists in the dictionary then the old value
is replaced by the new value, otherwise a new key/value pair is added to the dictionary.
The following example demonstrates setting an
object in the data dictionary.
Set("today", DateTime.Now);
Set("today", DateTime.Now);