Sofu Documentation
Target Method
NamespacesSofu.SofuReferenceTarget()()()
Returns its target
Declaration Syntax
C#
public SofuObject Target()
Return Value
Returns its target or null if there is no target
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)