ACAT.Extensions.Default.FunctionalAgents.AbbreviationsAgent.AbbreviationsScanner.includeAbbr C# (CSharp) Метод

includeAbbr() приватный Метод

Matchs the abbr with the filter and tells whether there is a match or not. Checks only the mnemonic
private includeAbbr ( Abbreviation abbr, String filter ) : bool
abbr Abbreviation abbr
filter String search filter
Результат bool
        private bool includeAbbr(Abbreviation abbr, String filter)
        {
            bool add = true;

            if (!String.IsNullOrEmpty(filter) &&
                !abbr.Mnemonic.StartsWith(filter, StringComparison.InvariantCultureIgnoreCase))
            {
                add = false;
            }

            return add;
        }