Tests if this List is really a List

C# |
public override bool IsList()

Returns true


Sofu.Sofu.Map file = SofuReader.LoadFile("file.sofu"); foreach (KeyValuePair<string,Sofu.SofuObject> entry in file) { if (entry.Value.IsList()) { foreach (SofuObject e in e.Value.AsList()) { // You don't need to catch exceptions here, IsList() makes sure it is a List. if (e.IsValue()) Console.WriteLine(e.AsValue().ToString()); } } }