/// <summary> /// Checks if the member type is imported /// </summary> private Boolean MemberTypeImported(String type, String searchInText) { if (type == "*") { return(true); } FRSearch search = new FRSearch(type); search.Filter = SearchFilter.OutsideCodeComments | SearchFilter.OutsideStringLiterals; search.NoCase = false; search.WholeWord = true; return(search.Match(searchInText) != null); }
/// <summary> /// Checks if the member type is imported /// </summary> protected bool MemberTypeImported(string type, string searchInText, string sourceFile) { if (type == "*") { return(true); } var search = new FRSearch(type); search.Filter = SearchFilter.OutsideCodeComments | SearchFilter.OutsideStringLiterals; search.NoCase = false; search.WholeWord = true; search.SourceFile = sourceFile; return(search.Match(searchInText) != null); }