namespace X
{
internal class Program
{
[DynamicLinqType]
public enum ExampleEnum
{
Value1,
Value2,
};
private static readonly ParsingConfig DefaultParsingConfig = new() {
};
static void Main(string[] args)
{
var data = new[]
{
new { Value = ExampleEnum.Value1 },
new { Value = ExampleEnum.Value2 },
};
// This should work:
data.AsQueryable().Select(DefaultParsingConfig, $"\"{typeof(ExampleEnum).FullName}\"?(Value)");
}
}
}
Related: #643
Related: #643