ExpressionReport

public sealed class ExpressionReport : IExpressionReport
Collates all messages and errors that occur while applying an expression to a tree.

Properties

ErrorCount

#
public int ErrorCount { get; }
Gets the number of error messages in this report.
ErrorCount

Errors

#
public IEnumerable<string> Errors { get; }
Iterate over all error messages.
Errors

Failures

#
public int Failures { get; }
Gets the number of times the expression threw exceptions.
Failures

NullsCreated

#
public int NullsCreated { get; }
Gets the number of non-null items that were converted into nulls by the expression.
NullsCreated

NullsRemoved

#
public int NullsRemoved { get; }
Gets the number of null items that were converted into non-null items by the expression.
NullsRemoved

Successes

#
public int Successes { get; }
Gets the number of times the expression was successfully applied.
Successes

WarningCount

#
public int WarningCount { get; }
Gets the number of warning messages in this report.
WarningCount

Warnings

#
public IEnumerable<string> Warnings { get; }
Iterate over all warning messages.
Warnings

Methods

AddError

#
public bool AddError(string message)
Add an error message.
message (string)Message to add.
True if message was added, false if message was already present.

AddFailure

#
public void AddFailure()
Increment the failure counter.

AddNullCreated

#
public void AddNullCreated()
Increment the null created counter.

AddNullRemoved

#
public void AddNullRemoved()
Increment the null removed counter.

AddSuccess

#
public void AddSuccess()
Increment the success counter.

AddWarning

#
public bool AddWarning(string message)
Add a warning message.
message (string)Message to add.
True if message was added, false if message was already present.

Merge

#
public void Merge(IExpressionReport report)
Merge data from another report.
report (IExpressionReport)Report to merge into this one.
Merge