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;
        }