Creates a new List and copies its contents from a something Enumerable
Examples
CopyC#
LinkedList<SofuObject> mylink = new LinkedList<SofuObject>(); mylink.AddFirst(new Sofu.Sofu.Value("1")); mylink.AddFirst(new Sofu.Sofu.Value("2")); mylink.AddFirst(new Sofu.Sofu.Value("3")); mylink.AddFirst(new Sofu.Sofu.Value("4")); mylink.AddFirst(new Sofu.Sofu.Value("5")); Sofu.Sofu.List mylist = new Sofu.Sofu.List(mylink); mylist.Write("reverse.sofu");
Declaration Syntax
C# |
public List( IEnumerable<SofuObject> copyFrom )
Parameters
- copyFrom (IEnumerable<(Of <(SofuObject>)>))
- Object to copy contents from