blob: a03a3f071bd5c7f30322abf80b1b8f5a84812b86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
namespace HandBrake.ApplicationServices.Converters
{
using System.ComponentModel;
using System;
using HandBrake.ApplicationServices.Functions;
public class EnumToDescConveter : EnumConverter
{
public EnumToDescConveter(Type type)
: base(type)
{
}
public override object ConvertTo(
ITypeDescriptorContext context,
System.Globalization.CultureInfo culture,
object value,
Type destinationType)
{
return EnumHelper<Enum>.GetDescription((Enum)value);
}
}
}
|