Tests if the List has a Sofu.Map at "index".
Parameters
- index (Int32)
- Index of the element to look for
Return Value
True if the element is there and is a Map, false otherwise
Examples
CopyC#
Sofu.Sofu.Map file = SofuReader.LoadFile("file.sofu"); if (file.list("Buildtragets").HasList(0)) { Console.WriteLine("The First buildtarget has attributes"); } if (file.list("Buildtragets").HasMap(1) && file.list("Buildtragets").Object(1).IsMap()) { //Same as HasMap(1) Console.WriteLine("The Second buildtarget has attributes as well"); }