Sofu Documentation
Dup Method
NamespacesSofu.SofuListDup()()()
Creates a shallow copy of this List.
Declaration Syntax
C#
public List Dup()
Return Value
A new List with the same elements
Examples
CopyC#
Sofu.Sofu.Map config = SofuReader.LoadFile("Config.Sofu");
Sofu.Sofu.List donetargets = config.list("BuildTargets").Dup();
donetargets.AppendElement("x64"); //Won't change config.list("BuildTargets")

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