public static MvcHtmlString ToHtmlString( PredicateReference expression, bool link = true) { if (link) return MvcHtmlString.Create (string.Format("<a href=#predicate-{2}>{0}</a>({1})", expression.Predicate.Identifier, string.Join(", ", expression.ActualArguments), expression.Predicate.Identifier )); return MvcHtmlString.Create (string.Format("{0}({1})", expression.Predicate.Identifier, string.Join(", ", expression.ActualArguments))); }
private static string ToHtmlString(PredicateReference expression) { return string.Format("{0}({1})", expression.Predicate.Identifier, string.Join(", ", expression.ActualArguments)); }