private static string ExpressionToString(Type modelType, Expression expression) { var data = KnockoutExpressionData.CreateConstructorData(); data.Aliases[modelType.FullName] = "this"; return(KnockoutExpressionConverter.Convert(expression, data)); }
private static string GetGetExpression(Type modelType, object model, MethodInfo method) { var expression = method.Invoke(model, null) as Expression; var data = KnockoutExpressionData.CreateConstructorData(); data.Aliases[modelType.FullName] = "this"; return(KnockoutExpressionConverter.Convert(expression, data)); }