You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
464 B
14 lines
464 B
10 months ago
|
using System.ComponentModel.DataAnnotations;
|
||
|
|
||
|
namespace StabilityMatrix.Avalonia.Converters;
|
||
|
|
||
|
internal static class EnumAttributeConverters
|
||
|
{
|
||
|
public static EnumAttributeConverter<DisplayAttribute> Display => new();
|
||
|
|
||
|
public static EnumAttributeConverter<DisplayAttribute> DisplayName => new(attribute => attribute.Name);
|
||
|
|
||
|
public static EnumAttributeConverter<DisplayAttribute> DisplayDescription =>
|
||
|
new(attribute => attribute.Description);
|
||
|
}
|