C# Класс ExampleMenu.Examples.Recording.LooseSelectUtil

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
LooseSelect ( IEnumerable options, string find, System.StringComparison sc ) : string

Loose string comparison. Returns the best match using increasingly inaccurate comparisons. Also makes sure there is a sole match at that level of accuracy. Spaces in the select string are ignored. The levels are: Perfect match (abcd in abcd) Prefix match (ab in abcd) Containing match (bc in abcd) Matching ordered sequence of characters (bd in abcd) If no sufficiently unique match was found, a LooseSelectException is thrown.

Приватные методы

Метод Описание
StringContainsSequence ( string str, string sequence, System.StringComparison sc ) : bool

Описание методов

LooseSelect() публичный статический Метод

Loose string comparison. Returns the best match using increasingly inaccurate comparisons. Also makes sure there is a sole match at that level of accuracy. Spaces in the select string are ignored. The levels are: Perfect match (abcd in abcd) Prefix match (ab in abcd) Containing match (bc in abcd) Matching ordered sequence of characters (bd in abcd) If no sufficiently unique match was found, a LooseSelectException is thrown.
public static LooseSelect ( IEnumerable options, string find, System.StringComparison sc ) : string
options IEnumerable
find string
sc System.StringComparison
Результат string