public static Expression MergeExpressions(GroupedDotvvmProperty property, Expression a, Expression b) { var attributeName = property.GroupMemberName; var separator = HtmlWriter.GetSeparatorForAttribute(attributeName); return(Expression.Call(typeof(string).GetMethod("Concat", new[] { typeof(string), typeof(string), typeof(string) }), a, Expression.Constant(separator), b)); }
public DotvvmProperty GetDotvvmProperty(string name) { return(generatedProperties.GetOrAdd(name, n => GroupedDotvvmProperty.Create(this, name))); }
public static string MergeValues(GroupedDotvvmProperty property, string a, string b) => HtmlWriter.JoinAttributeValues(property.GroupMemberName, a, b);