I have a collection being returned by a web service. A property of this collection is \"StatusCode\" which is a string value that can be anywhere from 0 to 5 (don\'t ask me why
You could define an IsIn() generic Extension Method:
IsIn()
public static bool IsIn(this T value, params T[] values) { return values.Contains(value); }
Then you could write your query like this:
var wo = from q in workOrders where w.IsIn("1","2","3") select w;