Finds the best match for this culture among a collection of cultures.
public Culture FindBestMatch(IEnumerable<Culture> cultures)
| parameter | description |
|---|---|
| cultures | The cultures to match. |
The best culture in the collection.
Finds the best match for this culture among a collection of language names.
public LanguageName FindBestMatch(IEnumerable<LanguageName> cultures)
| parameter | description |
|---|---|
| cultures | The language names to match. |
The best language name in the collection.
Finds the best match for this culture among a collection of cultures.
public T FindBestMatch<T>(IEnumerable<T> cultures, Func<T, LanguageName> converter)
| parameter | description |
|---|---|
| cultures | The cultures to match. |
| converter | The converter. |
The best culture in the collection.