public static HtmlComposite GenerateHtmlTreeNode <T>(EixoX.Collections.TreeNode <T> treeNode, string identityPrefix, ClassAcessor identityMember)
        {
            HtmlComposite li = new HtmlComposite("li");

            if (identityMember != null)
            {
                li.Attributes.AddLast("id", identityPrefix + identityMember.GetValue(treeNode.Value));
            }

            li.Children.AddLast(new HtmlSimple("span", treeNode.Value));

            if (treeNode.Count > 0)
            {
                li.Children.AddLast(GenerateHtmlTree <T>(treeNode, identityPrefix, identityMember));
            }

            return(li);
        }
 private static HtmlComposite GenerateHtmlTreeNode <T>(EixoX.Collections.TreeNode <T> treeNode)
 {
     return(GenerateHtmlTreeNode <T>(treeNode, null, null));
 }