式木
Expression完全に理解した private static readonly ParameterExpression dicParameterExpression = Expression.Parameter(typeof(Dictionary<string, object>), "dic"); private static readonly MethodInfo containsKeyMethod = typeof(Dictionary<string, object>).GetMethod("ContainsKey</string,></string,>…
やること 本体の関数はCreateExpressionで、下記のようなことを行っている 一番外側のWhitespaceは除外 式全体が括弧で囲まれている場合、不要な括弧なので除外 一番優先度の低い演算子を探して、本体の演算子とする 括弧で囲まれた位置にある演算子は無視(…