Sofu Documentation
Dup Method
NamespacesSofu.SofuMapDup()()()
Creates a shallow copy of itself.
Declaration Syntax
C#
public Map Dup()
Return Value
A new Map with the same contents as this one
Examples
CopyC#
Sofu.Sofu.Map file = SofuReader.LoadFile("file.sofu");
Sofu.Sofu.Map backup = file.Dup();
file.RemAttribute("Text");
file.SetAttribute("Somestring",new Sofu.Sofu.Value("foo"));
file.Write("file.sofu");
backup.Write(Console.Out);

Assembly: Sofu (Module: Sofu) Version: 0.2.1.0 (0.2.1.0)