DataDictionary.Interpreter.BinaryExpression.CreateSurface C# (CSharp) Method

CreateSurface() public method

Provides the surface of this function if it has been statically defined
public CreateSurface ( DataDictionary.Interpreter.InterpretationContext context, Parameter xParam, Parameter yParam, ExplanationPart explain ) : Surface
context DataDictionary.Interpreter.InterpretationContext the context used to create the surface
xParam Parameter The X axis of this surface
yParam Parameter The Y axis of this surface
explain ExplanationPart
return Surface
        public override Surface CreateSurface(InterpretationContext context, Parameter xParam, Parameter yParam,
            ExplanationPart explain)
        {
            Surface retVal = base.CreateSurface(context, xParam, yParam, explain);

            Surface leftSurface = Left.CreateSurface(context, xParam, yParam, explain);
            if (leftSurface != null)
            {
                Surface rightSurface = Right.CreateSurface(context, xParam, yParam, explain);

                if (rightSurface != null)
                {
                    retVal = CombineSurface(leftSurface, rightSurface);
                }
            }
            retVal.XParameter = xParam;
            retVal.YParameter = yParam;

            return retVal;
        }