using System.Diagnostics;
public string Type { get;set;}
public int Amount { get; set; }
public TestChild Child { get; set; }
public string Name { get; set; }
public static void Main()
Console.WriteLine("Hello World");
var expression = new Expression("Child.Name = 'Init'");
Func<TestParent, bool> function = expression.ToLambda<TestParent, bool>();
Console.WriteLine(function(obj));