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

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