I have a query that looks like this:
var results = from person
where <here I need to do something like if person is of type
Employee, call person.GetSalary() > 100000 but if the person is of type Contractor, I need to execute
several lines of code before doing a person.GetSalary() > 100000
select new {person.Name}
The difficulty is in constructing the where clause. Can someone help me complete this query?