Sofu Documentation
IsDefined Method
NamespacesSofu.SofuReferenceIsDefined()()()
Checks if the referent is a defined
Declaration Syntax
C#
public override bool IsDefined()
Return Value
True if the referent exists and is defined
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.IsDefined()) {
                    Console.Out.Write(entry.Key.ToString());
                    Console.Out.Write(" is defined"); //Write at least "Foo is defined"
                }
            }

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