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")