Tests if this Map is really a Map.
Declaration Syntax
C# |
public override Map AsMap()
Return Value
Returns itself
Examples
CopyC#
Sofu.Sofu.Map file = SofuReader.LoadFile("file.sofu"); try { foreach (KeyValuePair<string,Sofu.SofuObject> entry in file) { Sofu.Sofu.Map mymap = entry.Value.AsMap(); mymap.Write(entry.Key+".sofu"); //Splits one .sofu into Sub Trees. } } catch (SofuNotMapException e) { Console.Out.WriteLine("text was not a map"); }