Sofu Documentation
IsMap Method
NamespacesSofu.SofuReferenceIsMap()()()
Checks if the referent is a Map
Declaration Syntax
C#
public override bool IsMap()
Return Value
True if the referent exists and is a Map
Examples
CopyC#
Sofu.Sofu.Map file = SofuReader.LoadFile("file.sofu");
            file.SetAttribute("Foo",new Sofu.Sofu.Reference("someref",new Sofu.Sofu.Map()));
            foreach (KeyValuePair<string,Sofu.SofuObject> entry in file) {
                if (entry.Value.IsList()) {
                    Console.Out.Write(entry.Key.ToString());
                    Console.Out.WriteLine(" is a Map"); //Writes at least "Foo is a Map"
                }
            }

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