using System.Collections.Generic;
using System.Linq.Dynamic.Core;
using System.Linq.Dynamic.Core.CustomTypeProviders;
using System.ComponentModel.DataAnnotations;
public static class Utils
public static int ParseAsInt(string value)
public static int IncrementMe(this int values)
public static void Main()
var query1 = new [] { new { Value = (string) null }, new { Value = "100" } }.AsQueryable();
var result1 = query1.Select("Utils.ParseAsInt(Value)");
FiddleHelper.WriteTable(result1);
var query2 = new [] { new { Value = 42 }, new { Value = 0 } }.AsQueryable();
var result2 = query2.Select("Value.IncrementMe()");
FiddleHelper.WriteTable(result2);