EmberLib.Glow.GlowFunctionBase.EnsureResult C# (CSharp) 메소드

EnsureResult() 공개 메소드

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

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

             return result;
        }