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.
13 lines
464 B
13 lines
464 B
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); |
|
}
|
|
|