Skip to content

Instantly share code, notes, and snippets.

View BrannJoly's full-sized avatar

Brann Joly BrannJoly

View GitHub Profile
/// <summary>
/// Generates an Expression that can set a nested property
/// </summary>
/// <param name="path">a list of nested properties </param>
/// <returns>the compiled set expression</returns>
public Expression<Action<T, object>> CreateNestedSet(List<string> path)
{
// target
var targetParameterExpression = Expression.Parameter(typeof(T), "target");
### Keybase proof
I hereby claim:
* I am BrannJoly on github.
* I am brannjoly (https://keybase.io/brannjoly) on keybase.
* I have a public key whose fingerprint is 0858 3651 B51E FB8A 6A32 25B2 256F 67AD DEA1 ADCA
To claim this, I am signing this object: