Sofu Documentation
Length Method
NamespacesSofu.SofuListLength()()()
Fetches the amount of elements in this List
Declaration Syntax
C#
public int Length()
Return Value
Returns the number of elements
Examples
CopyC#
Sofu.Sofu.Map file = SofuReader.LoadFile("file.sofu");
if (file.HasList("buildtargets")) {
    Console.Out.WriteLine("Found {0} Targets to build",file.list("buildtargets").Length())
}
else Console.Out.WriteLine("Error: No targets to build")

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