public Func<string, object> ConverterFor(Type type) { if (type.GetTypeInfo().IsEnum) { return x => Enum.Parse(type, x); } return null; }