Skip to content

Conversation

@chillitom
Copy link

Add overloads for Process.Extract..() methods to allow choosing generic T by a string key.

Good for when you don't want the query to also be an object of type T.

Simplifies..

var bestMatchName = Process.ExtractOne(name, candidates.Select(pr => pr.Name));

var bestMatch = potentialRacesForTrack.First(pr => pr.Name == bestMatchName.Value);

to

var bestMatch = Process.ExtractOne(name, candidates.Select(pr => pr.Name));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant