Exemple #1
0
        public string GetConvertedContent(XElement element)
        {
            var elementValues = GetParseFunction()(element).ToArray();

            elementValues = MdManager.GenerateCaption("Property", elementValues);

            return(string.Format(Pattern, elementValues[0], elementValues[1]));
        }
Exemple #2
0
        public string GetConvertedContent(XElement element)
        {
            var elementValues = GetParseFunction()(element).ToArray();

            var rootNode = element.Nodes().FirstOrDefault();

            if (rootNode != null && rootNode.ToString().StartsWith("<none>"))
            {
                return(string.Empty);
            }

            elementValues = MdManager.GenerateCaption("Field", elementValues);

            return(string.Format(Pattern, elementValues[0], elementValues[1]));
        }
Exemple #3
0
        public string GetConvertedContent(XElement element)
        {
            var elementValues = GetParseFunction()(element).ToArray();

            elementValues[0] += !elementValues[0].Contains("(") ? "()" : string.Empty;
            var isExtension = elementValues[0].Contains("Extension");

            elementValues = MdManager.GenerateCaption("Method", elementValues);

            if (elementValues[0].Contains("#ctor"))
            {
                elementValues[0] = elementValues[0].Replace("#ctor", "Constructor").Replace("Method: ", string.Empty);
            }

            elementValues[0] = isExtension ? string.Format("Extension {0}", elementValues[0]) : elementValues[0];

            return(string.Format(Pattern, elementValues[0], elementValues[1]));
        }