I was looking at this post and was wondering if i can do similar stuff in c#?
https://docs.microsoft.com/en-us/dynamicsax-2012/developer/using-expressions-in-query-ranges
It should be something like this except i can't compile with errors now..
var provider = new AXQueryProvider(null);
QueryCollection<TestObject> itemList = new QueryCollection<TestObject>(provider);
var query = itemList.Where("id= @0 && name = @1", 1, "firstname lastname");