Show / Hide Table of Contents

Class IfFunctionCompiler

Why do the If function require a compiler of its own you might ask;)

It is because it only needs to evaluate one of the two last expressions. This compiler handles this - it ignores the irrelevant expression.

Inheritance
System.Object
FunctionCompiler
IfFunctionCompiler
Inherited Members
FunctionCompiler.Function
FunctionCompiler.Context
FunctionCompiler.BuildFunctionArguments(CompileResult, DataType, List<FunctionArgument>)
FunctionCompiler.BuildFunctionArguments(CompileResult, List<FunctionArgument>)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OfficeOpenXml.FormulaParsing.ExpressionGraph.FunctionCompilers
Assembly: EPPlus.dll
Syntax
public class IfFunctionCompiler : FunctionCompiler

Constructors

IfFunctionCompiler(ExcelFunction, ParsingContext)

Declaration
public IfFunctionCompiler(ExcelFunction function, ParsingContext context)
Parameters
Type Name Description
ExcelFunction function
ParsingContext context

Methods

Compile(IEnumerable<Expression>)

Declaration
public override CompileResult Compile(IEnumerable<Expression> children)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<Expression> children
Returns
Type Description
CompileResult
Overrides
FunctionCompiler.Compile(IEnumerable<Expression>)
Back to top Generated by DocFX