Creates a new Reference without target information
Declaration Syntax
C# |
public Reference()
Remarks
Empty Reference will be written as an Sofu.Sofu.Undefined
Examples
CopyC#
Sofu.Sofu.Map mymap = new Sofu.Sofu.Map(); mymap.SetAttribute("EmptyRef",new Sofu.Sofu.Reference()); if (mymap.Object("EmptyRef").IsReference()) { Console.Out.WriteLine("EmptyRef is a Reference"); if (mymap.Object("EmptyRef").IsValid()) { Console.Out.WriteLine("EmptyRef is a Valid"); //Will not get printed... } }