Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

204
Views
How to merge two Expression<Func<T, object>>

I have a class:

public class Person {
        public virtual string Id { get; set; }
        public virtual string Name { get; set; }
        public virtual int Age { get; set; }
        public virtual DateTime UpdateTime { get; set; }
}

And I have two Expression<Func<T, object>> objects:

Expression<Func<Person, object>> exp1 = t => t.UpdateTime
Expression<Func<Person, object>> exp2 = t => new {t.Age, t.Name}

And now I need to merge them to

Expression<Func<Person, object>> exp1 = t => new {t.UpdateTime, t.Age, t.Name}

Is this possible? If so, how?

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!