Inheritance: IComment, IReferrer
Ejemplo n.º 1
0
        public string Format(See block)
        {
            string url = "";

            if (block.Reference is Namespace)
                url = Format(NamespaceUrlFormat,
                             new Dictionary<string, string> { { "namespace", block.Reference.Name } });
            else if (block.Reference is DeclaredType)
                url = Format(TypeUrlFormat,
                             new Dictionary<string, string>
                             {
                                 { "type.namespace", ((DeclaredType)block.Reference).Namespace.Name },
                                 { "type", block.Reference.Name }
                             });

            return "<a href=\"" + url + "\">" + block.Reference.Name + "</a>";
        }
Ejemplo n.º 2
0
 private string FormatSee(See block)
 {
     return FormatReferencable(block.Reference);
 }