Creates a new Sofu.Map from a Dictionary.
Declaration Syntax
C# |
public Map( Dictionary<string, SofuObject> copyFrom )
Parameters
- copyFrom (Dictionary<(Of <(String, SofuObject>)>))
- Dictionary to copy the elements from
Examples
CopyC#
Dictionary<string, SofuObject> mydict = new Dictionary<string, SofuObject>(); for (int i=0; i <= 100; i++) mydict.Add(i.ToString,new Sofu.Sofu.Value(i**2)); Sofu.Sofu.Map square = new Sofu.Sofu.Map(mydict);