Easy way to create a C# lambda expression from a string (with Roslyn)

added by DotNetKicks
1/29/2018 2:53:18 PM

2 Kicks, 345 Views

I've worked on quite a lot of projects over the years, with many different teams, and one of the questions that keeps coming back to me over and over with a high degree of regularity is how to load a C# lambda from a string - for example from a configuration file.