'Dynamically generate lambda expression

I have the following class:

public class Movie
{
    public int MovieId { get; set; }
    public string Title { get; set; }
}

I want to create a lambda expression like this, which contained all properties of the class:

m => new { m.MovieId, m.Title }

Is it possible to generate that dynamically? Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source