Class IconValidationResult
Outcome of validating an icon against IconOptions.
public sealed record IconValidationResult : IEquatable<IconValidationResult>
- Inheritance
-
IconValidationResult
- Implements
- Inherited Members
Constructors
IconValidationResult(bool, string)
Outcome of validating an icon against IconOptions.
public IconValidationResult(bool IsValid, string Error)
Parameters
IsValidboolTrue when the icon is accepted.
ErrorstringA human-readable reason when rejected; null when valid.
Fields
Valid
public static readonly IconValidationResult Valid
Field Value
Properties
Error
A human-readable reason when rejected; null when valid.
public string Error { get; init; }
Property Value
IsValid
True when the icon is accepted.
public bool IsValid { get; init; }
Property Value
Methods
Invalid(string)
public static IconValidationResult Invalid(string error)
Parameters
errorstring