Linq Orderby 中进行函数运算解决思路

Linq Orderby 中进行函数运算我想实现from c in CList orderby (c.Close / c.DailyOpen)(from c in res se

Linq Orderby 中进行函数运算
我想实现
from c in CList orderby (c.Close / c.DailyOpen)

(from c in res select c).OrderBy(c => c.Close / c.DailyOpen)

按 c.Close / c.DailyOpen 进行排序,但是按上面的写法都不可以,应该如何写?

[解决办法]
应该是不可以的 你试试先new一个那个运算作为列 然后在orderby 试试
[解决办法]

C# code
var query= from c in res orderby c.Close/c.DailyOpen select c;