Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
        /// <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);
        }