C# Класс ExcelFormulaParser.Engine.Excel.Functions.ExcelFunction

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
BeforeInvoke ( ParsingContext context ) : void
ExcelFunction ( ) : System
ExcelFunction ( ArgumentCollectionUtil argumentCollectionUtil, ArgumentParsers argumentParsers ) : System
Execute ( IEnumerable arguments, ParsingContext context ) : CompileResult

Защищенные методы

Метод Описание
ArgToBool ( IEnumerable arguments, int index ) : bool

If the argument is a boolean value its value will be returned. If the argument is an integer value, true will be returned if its value is not 0, otherwise false.

ArgToDecimal ( IEnumerable arguments, int index ) : double
ArgToDecimal ( object obj ) : double
ArgToInt ( IEnumerable arguments, int index ) : int
ArgToString ( IEnumerable arguments, int index ) : string
ArgsToDoubleEnumerable ( IEnumerable arguments ) : IEnumerable
CalculateCollection ( IEnumerable collection, double result, Func action ) : double
CreateResult ( object result, DataType dataType ) : CompileResult
IsNumeric ( object val ) : bool
ThrowArgumentExceptionIf ( Func condition, string message ) : void
ThrowExcelFunctionException ( ExcelErrorCodes code ) : void
ThrowExcelFunctionExceptionIf ( Func condition, ExcelErrorCodes code ) : void
ValidateArguments ( IEnumerable arguments, int minLength ) : void

Описание методов

ArgToBool() защищенный Метод

If the argument is a boolean value its value will be returned. If the argument is an integer value, true will be returned if its value is not 0, otherwise false.
protected ArgToBool ( IEnumerable arguments, int index ) : bool
arguments IEnumerable
index int
Результат bool

ArgToDecimal() защищенный Метод

protected ArgToDecimal ( IEnumerable arguments, int index ) : double
arguments IEnumerable
index int
Результат double

ArgToDecimal() защищенный Метод

protected ArgToDecimal ( object obj ) : double
obj object
Результат double

ArgToInt() защищенный Метод

protected ArgToInt ( IEnumerable arguments, int index ) : int
arguments IEnumerable
index int
Результат int

ArgToString() защищенный Метод

protected ArgToString ( IEnumerable arguments, int index ) : string
arguments IEnumerable
index int
Результат string

ArgsToDoubleEnumerable() защищенный Метод

protected ArgsToDoubleEnumerable ( IEnumerable arguments ) : IEnumerable
arguments IEnumerable
Результат IEnumerable

BeforeInvoke() публичный Метод

public BeforeInvoke ( ParsingContext context ) : void
context ParsingContext
Результат void

CalculateCollection() защищенный Метод

protected CalculateCollection ( IEnumerable collection, double result, Func action ) : double
collection IEnumerable
result double
action Func
Результат double

CreateResult() защищенный Метод

protected CreateResult ( object result, DataType dataType ) : CompileResult
result object
dataType DataType
Результат ExcelFormulaParser.Engine.ExpressionGraph.CompileResult

ExcelFunction() публичный Метод

public ExcelFunction ( ) : System
Результат System

ExcelFunction() публичный Метод

public ExcelFunction ( ArgumentCollectionUtil argumentCollectionUtil, ArgumentParsers argumentParsers ) : System
argumentCollectionUtil ArgumentCollectionUtil
argumentParsers ArgumentParsers
Результат System

Execute() публичный абстрактный Метод

public abstract Execute ( IEnumerable arguments, ParsingContext context ) : CompileResult
arguments IEnumerable
context ParsingContext
Результат ExcelFormulaParser.Engine.ExpressionGraph.CompileResult

IsNumeric() защищенный Метод

protected IsNumeric ( object val ) : bool
val object
Результат bool

ThrowArgumentExceptionIf() защищенный Метод

protected ThrowArgumentExceptionIf ( Func condition, string message ) : void
condition Func
message string
Результат void

ThrowExcelFunctionException() защищенный Метод

protected ThrowExcelFunctionException ( ExcelErrorCodes code ) : void
code ExcelFormulaParser.Engine.Exceptions.ExcelErrorCodes
Результат void

ThrowExcelFunctionExceptionIf() защищенный Метод

protected ThrowExcelFunctionExceptionIf ( Func condition, ExcelErrorCodes code ) : void
condition Func
code ExcelFormulaParser.Engine.Exceptions.ExcelErrorCodes
Результат void

ValidateArguments() защищенный Метод

protected ValidateArguments ( IEnumerable arguments, int minLength ) : void
arguments IEnumerable
minLength int
Результат void