mirror of
https://github.com/yck1509/ConfuserEx
synced 2026-06-08 18:29:44 +00:00
16 lines
349 B
C#
16 lines
349 B
C#
using System;
|
|
using System.Windows.Markup;
|
|
|
|
namespace ConfuserEx {
|
|
public class EnumValuesExtension : MarkupExtension {
|
|
readonly Type enumType;
|
|
|
|
public EnumValuesExtension(Type enumType) {
|
|
this.enumType = enumType;
|
|
}
|
|
|
|
public override object ProvideValue(IServiceProvider serviceProvider) {
|
|
return Enum.GetValues(enumType);
|
|
}
|
|
}
|
|
} |