Tests if this List is really a List

C# |
public override List AsList()

Returns itself but as a Sofu.Sofu.List


Sofu.Sofu.Map file = SofuReader.LoadFile("file.sofu"); try { foreach (KeyValuePair<string,Sofu.SofuObject> entry in file) { Sofu.Sofu.Map mylist = entry.Value.AsList(); foreach (SofuObject e in mylist) { Console.WriteLine(e.AsValue().ToString()); } } } catch (SofuNotListException e) { Console.Out.WriteLine("It was not a List"); } catch (SofuNotValueException e) { Console.Out.WriteLine("Something other than a value in the Lists."); }