APIDocumentationCreator.HTMLGenerator.CreateLinkToType C# (CSharp) Метод

CreateLinkToType() публичный Метод

public CreateLinkToType ( Parser parser, string type ) : string
parser Parser
type string
Результат string
        public string CreateLinkToType(Parser parser, string type)
        {
            IEnumerable<APIInterface> interfaces = parser.Interfaces.Where(apiInterface => apiInterface.Name == type);
            if (interfaces.Count() == 0)
                return type;

            // create a link to that type.
            string result = string.Format("<a href=\"?page=com_object_{0}\">{1}</a>", type.ToLower(), type);

            return result;
        }