private static XElement?GetXmlDocsElement(this ParameterInfo parameter, CachingXDocument xml) { var name = GetMemberElementName(parameter.Member); var element = xml.GetXmlDocsElement(name); if (element != null) { ReplaceInheritdocElements(parameter.Member, element); IEnumerable result; if (parameter.IsRetval || string.IsNullOrEmpty(parameter.Name)) { result = element.Elements("returns"); } else { result = element.Elements("param").Where(x => x.Attribute("name")?.Value == parameter.Name); } return(result.OfType <XElement>().FirstOrDefault()); } return(null); }
private static XElement?GetXmlDocsElement(this MemberInfo member, CachingXDocument xml) { var name = GetMemberElementName(member); return(xml.GetXmlDocsElement(name)); }
internal static XElement?GetXmlDocsElement(this XDocument xml, string name) { return(CachingXDocument.GetXmlDocsElement(xml, name)); }
internal static XElement?GetXmlDocsElement(this XDocument xml, string name) { var result = (IEnumerable)DynamicApis.XPathEvaluate(xml, $"/doc/members/member[@name='{name}']"); return(CachingXDocument.GetXmlDocsElement(xml, name)); }