private static XmlElement XmlFromName(Type type, XmlDocumentationType prefix, string name, XmlDocument xmlDocument) { string fullName; string TypeFullName = type.FullName.Split("[").First(); if (string.IsNullOrEmpty(name)) { fullName = $"{prefix.GetEnumDescription()}:{TypeFullName}"; } else { fullName = $"{prefix.GetEnumDescription()}:{TypeFullName}.{name}"; } var matchedElement = xmlDocument["doc"]["members"].SelectSingleNode("member[@name='" + fullName + "']") as XmlElement; return(matchedElement); }
private string GetInnerElementString(Type type, XmlDocumentationType tag, PropertyInfo property = null) => GetElement(type, property)?.SelectSingleNode(tag.GetEnumDescription().ToLower()) is XmlNode summa?summa.InnerText.Trim() : "";