Table of Contents

Class IconValidationResult

Namespace
Tharga.Team
Assembly
Tharga.Team.dll

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

IsValid bool

True when the icon is accepted.

Error string

A human-readable reason when rejected; null when valid.

Fields

Valid

public static readonly IconValidationResult Valid

Field Value

IconValidationResult

Properties

Error

A human-readable reason when rejected; null when valid.

public string Error { get; init; }

Property Value

string

IsValid

True when the icon is accepted.

public bool IsValid { get; init; }

Property Value

bool

Methods

Invalid(string)

public static IconValidationResult Invalid(string error)

Parameters

error string

Returns

IconValidationResult