In LINQ, is it possible to have conditional orderby sort order (ascending vs. descending).
Something like this (not valid code):
bool flag; (from w
bool flag; from w in widgets where w.Name.Contains("xyz") orderby flag == true ? w.Id : w.Id descending select w
ascending is impled