I have a simple LINQ query that is going against a collection.
Dim oList = From w In Os
Order By w.ClassTitle Descending
Select w
What I'd like to be able to do though is pass into this whether it's descending or ascending. I'm not sure how to do that.
Also, if I were to have a where clause in here.. say
where w.ClassTitle = "Test"
How can I make the "Test so that I can pass it into the LINQ query.
Thanks shannon