private static void SetComment(this IMutableAnnotatable annotatable, XPathNavigator navigator, MemberInfo memberInfo) { var comment = navigator.GetComment(memberInfo); if (!string.IsNullOrWhiteSpace(comment)) { annotatable.SetAnnotation("ClrComment", comment); } else { annotatable.RemoveAnnotation("ClrComment"); } }