Creates a new empty Reference with target information, used during parsing.
This will not create a valid reference
Declaration Syntax
C# |
public Reference( string target )
Parameters
- target (String)
- Target to point to
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("someref")); 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... } }