コード例 #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
                                                       ));
        }
コード例 #2
0
 private static string ToHtmlString(AttributeReference expression)
 {
     return string.Format("{1}.{0}",
                          expression.Attribute.FriendlyName,
                          expression.Variable
                          );
 }