C# Class NLog.Conditions.ConditionMethodExpression

Condition method invocation expression (represented by method(p1,p2,p3) syntax).
Inheritance: NLog.Conditions.ConditionExpression
Datei anzeigen Open project: NLog/NLog Class Usage Examples

Public Methods

Method Description
ConditionMethodExpression ( string conditionMethodName, MethodInfo methodInfo, IEnumerable methodParameters ) : System

Initializes a new instance of the ConditionMethodExpression class.

ToString ( ) : string

Returns a string representation of the expression.

Protected Methods

Method Description
EvaluateNode ( LogEventInfo context ) : object

Evaluates the expression.

Method Details

ConditionMethodExpression() public method

Initializes a new instance of the ConditionMethodExpression class.
public ConditionMethodExpression ( string conditionMethodName, MethodInfo methodInfo, IEnumerable methodParameters ) : System
conditionMethodName string Name of the condition method.
methodInfo System.Reflection.MethodInfo of the condition method.
methodParameters IEnumerable The method parameters.
return System

EvaluateNode() protected method

Evaluates the expression.
protected EvaluateNode ( LogEventInfo context ) : object
context LogEventInfo Evaluation context.
return object

ToString() public method

Returns a string representation of the expression.
public ToString ( ) : string
return string