private bool TryGetCref(string crefValue, IEnumerable <XmlDocFile> docFiles, out XmlDocMember member) { if (TryGetCrefImpl(crefValue, ParentFile, out member) && member.SummaryNode.HasChildNodes) { return(true); } foreach (var docFile in docFiles) { if (TryGetCrefImpl(crefValue, docFile, out member) && member.SummaryNode.HasChildNodes) { return(true); } } return(false);
static bool TryGetCrefImpl(string crefValue, XmlDocFile docFile, out XmlDocMember member) { return(docFile.Members.TryGetValue(crefValue, out member)); }