Ejemplo n.º 1
0
        public static MvcHtmlString ToHtmlString( AttributeReference expression, bool link = true)
        {
            if (link)
            return MvcHtmlString.Create (string.Format("{1}.<a href=#attribute-{2}>{0}</a>",
                                                       expression.Attribute.FriendlyName,
                                                       expression.Variable,
                                                       expression.Attribute.Identifier
                                                       ));

            return MvcHtmlString.Create (string.Format("{1}.{0}",
                                                       expression.Attribute.FriendlyName,
                                                       expression.Variable
                                                       ));
        }
Ejemplo n.º 2
0
 private static string ToHtmlString(AttributeReference expression)
 {
     return string.Format("{1}.{0}",
                          expression.Attribute.FriendlyName,
                          expression.Variable
                          );
 }