ExpressionReport

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

Properties

ErrorCount

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

Errors

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

Failures

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

NullsCreated

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

NullsRemoved

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

Successes

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

WarningCount

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

Warnings

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

Methods

AddError

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

AddFailure

#
Increment the failure counter.
public void AddFailure()

AddNullCreated

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

AddNullRemoved

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

AddSuccess

#
Increment the success counter.
public void AddSuccess()

AddWarning

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

Merge

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