Creates a new Sofu.Map from another Sofu.Map.
Declaration Syntax
C# |
public Map( Map copyFrom )
Parameters
- copyFrom (Map)
- Map to copy the Elements from. (This does NOT a deep copy, just level 1)
Examples
CopyC#
Sofu.Sofu.Map file = SofuReader.LoadFile("file.sofu"); Sofu.Sofu.Map backup = new Sofu.Sofu.Map(file); file.RemAttribute("Text"); file.SetAttribute("Somestring",new Sofu.Sofu.Value("foo")); file.Write("file.sofu"); backup.Write(Console.Out);