Sofu Documentation
HasList Method (key)
NamespacesSofu.SofuMapHasList(String)
Tests if a specific element in this Map exists and is a Sofu.List
Declaration Syntax
C#
public bool HasList(
	string key
)
Parameters
key (String)
Element to look for
Return Value
True if the element is there and is a List, false otherwise
Examples
CopyC#
Sofu.Sofu.Map file = SofuReader.LoadFile("file.sofu");
if (file.HasList("Parameter")) {
    Sofu.Sofu.List parameters = file.list("Parameter");
    foreach (SofuObject para in parameters) {
        Console.Out.Write("Parameter: ");
        try {
            Console.Out.WriteLine(para.AsValue().ToString());
        }
        catch (SofuNotValueException e) {
            Console.Out.WriteLine("Parameter synatx wrong, expected a Sofu Value");
        }
    }
}
else {
    Console.WriteLine("No parameters defined");
}

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