EmberLib.Glow.GlowFunctionBase.EnsureResult C# (CSharp) Method

EnsureResult() public method

Ensures that the "result" field is present, creating a new EmberSequence and assigning it to the "result" field if necessary.
public EnsureResult ( ) : EmberSequence
return EmberSequence
        public EmberSequence EnsureResult()
        {
            var result = Result;

             if (result == null)
             {
            result = new EmberSequence(GlowTags.FunctionContents.Result);
            Result = result;
             }

             return result;
        }