internal static string Returns(XDocument xmlComments, MethodInfo method)
 {
     return(XmlCommentHelper.MethodElement(xmlComments, method)
            ?.Descendants("returns")
            .FirstOrDefault()
            ?.Value ??
            string.Empty);
 }
 internal static string TypeParameter(XDocument xmlComments, MethodInfo method, Type genericArgument)
 {
     return(XmlCommentHelper.MethodElement(xmlComments, method)
            ?.Descendants("typeparam")
            .FirstOrDefault(el => el.Attribute("name")?.Value == genericArgument.Name)
            ?.Value ??
            string.Empty);
 }
 internal static string Parameter(XDocument xmlComments, MethodBase method, ParameterInfo parameter)
 {
     return(XmlCommentHelper.MethodElement(xmlComments, method)
            ?.Descendants("param")
            .FirstOrDefault(el => el.Attribute("name")?.Value == parameter.Name)
            ?.Value ??
            string.Empty);
 }