Class TaggedProperty
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
TagKeyValuePair<TagTypeKey, object>- The tag.
Keystring- The displayed name.
Valuestring- The displayed value.
CultureCultureInfo- The culture.
IsUncomparablebool- 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
Culture
The culture.
public CultureInfo Culture { get; }
Property Value
IsUncomparable
Whether the property is uncomparable and cannot derive a severity and a color.
public bool IsUncomparable { get; init; }
Property Value
Key
The displayed name.
public string? Key { get; init; }
Property Value
RawValue
The value of the tag.
public object? RawValue { get; }
Property Value
Tag
The tag.
public KeyValuePair<TagTypeKey, object?> Tag { get; init; }
Property Value
Type
The type key of the tag.
public TagTypeKey Type { get; }
Property Value
Value
The displayed value.
public string Value { get; init; }
Property Value
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.