API Reference
Struct
ComparisonResult
Result of a comparison operation.
Inheritance
- ValueType
- ComparisonResult
Methods
public static ComparisonResult Failed(String error) #Returns:
ComparisonResultCreates a failed comparison result with the provided error message.
Parameters
- error System.String
- Description of the failure.
public static ComparisonResult SuccessResult(Boolean result) #Returns:
ComparisonResultCreates a successful comparison result with the specified boolean outcome.
Parameters
- result System.Boolean
Inherited Methods
Properties
public Boolean Result { get; } #Outcome of the comparison (true/false) when Success is true.
public Boolean Success { get; } #Indicates whether the comparison ran successfully (no exceptions or type errors).
public String ErrorMessage { get; } #Error details when Success is false; otherwise unspecified.
public static ComparisonResult Equal { get; } #Represents equality comparison success.
public static ComparisonResult NotComparable { get; } #Represents an unsupported or incomparable state.