I'm using IEnumerable orderbars to sort my items in ascending format, but this is my query in this way Does not work:
IEnumerable & lt; Step & gt; Steps = allsteps Where (step = & gt; step.x
It is not necessary to use orderborder or order-bide order
Why?
I want to use the Sum ()
method is necessary for ordering certain items and items (there are some rules)
I read in MSDN That should be enumerated to work, but what's the best way (I did not try to do this)
Edit: x
and y
are type of double
. I checked in the quick check of the first thing (steps first ()) of my steps.
First of all, why not put it in one line only.
var steps = allsteps Where (step = & gt; step.x X
is not primitive or IComparable
or ICOPERABLE & Lieutenant; Type FX & gt;
Then you will not be able to order your list with or without LINQ.
Comments
Post a Comment