Sofu Documentation
IsValid Method
NamespacesSofu.SofuReferenceIsValid()()()
Tests if a target is set.
Declaration Syntax
C#
public bool IsValid()
Return Value
True if there is a target, false otherwise
Examples
CopyC#
Sofu.Sofu.Map stuff = new Sofu.Sofu.Map();
            stuff.SetAttribute("Self",new Sofu.Sofu.Reference("selfref",stuff));
            foreach (KeyValuePair<string,Sofu.SofuObject> entry in stuff) {
                if (entry.Value.IsReference()) {
                    Console.WriteLine("I'm a Reference");
                    if (entry.Value.IsValid()) {
                        Console.Write("I'm point to a ");
                        Console.WriteLine(entry.Value.Target().TypeString());
                    }
                }
            }

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