Table of Contents

Class TaggedProperty

Namespace
Cryville.EEW
Assembly
Cryville.EEW.dll
Represents a property derived from a tag.
public record TaggedProperty : IEquatable<TaggedProperty>
Inheritance
TaggedProperty
Implements
Derived
Inherited Members

Constructors

TaggedProperty(KeyValuePair<TagTypeKey, object?>, string?, string, CultureInfo, bool)

Represents a property derived from a tag.
public TaggedProperty(KeyValuePair<TagTypeKey, object?> Tag, string? Key, string Value, CultureInfo Culture, bool IsUncomparable = false)

Parameters

Tag KeyValuePair<TagTypeKey, object>
The tag.
Key string
The displayed name.
Value string
The displayed value.
Culture CultureInfo
The culture.
IsUncomparable bool
Whether the property is uncomparable and cannot derive a severity and a color.

Properties

Condition

The additional condition.
public string? Condition { get; init; }

Property Value

string

Culture

The culture.
public CultureInfo Culture { get; }

Property Value

CultureInfo

IsUncomparable

Whether the property is uncomparable and cannot derive a severity and a color.
public bool IsUncomparable { get; init; }

Property Value

bool

Key

The displayed name.
public string? Key { get; init; }

Property Value

string

RawValue

The value of the tag.
public object? RawValue { get; }

Property Value

object

Tag

The tag.
public KeyValuePair<TagTypeKey, object?> Tag { get; init; }

Property Value

KeyValuePair<TagTypeKey, object>

Type

The type key of the tag.
public TagTypeKey Type { get; }

Property Value

TagTypeKey

Value

The displayed value.
public string Value { get; init; }

Property Value

string

Methods

GetTagForColorHint()

Gets a tag as a hint to color mapping for the property.
public virtual KeyValuePair<TagTypeKey, object?>? GetTagForColorHint()

Returns

KeyValuePair<TagTypeKey, object>?
A tag as a hint to color mapping for the property.