Sofu Documentation
AsValue Method
NamespacesSofu.SofuReferenceAsValue()()()
Returns the referent as a Value
Declaration Syntax
C#
public override Value AsValue()
Return Value
The Referents AsValue()
Examples
CopyC#
Sofu.Sofu.Value val = new Sofu.Sofu.Value("Hello World");
            Sofu.Sofu.Reference ref = new Sofu.Sofu.Reference("refval",val);
            Console.Out.WriteLine(val.AsValue().ToString()); //Writes "Hello World"
            Console.Out.WriteLine(ref.AsValue().ToString()); //Writes also "Hello World"
Exceptions
ExceptionCondition
SofuNoTargetExceptionThrows a SofuNoTargetException if the target does not exists or is not defined
SofuNotValueExceptionThrows a SofuNotValueException if the target is not a Value

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