IGUtils.

GetBestMatch<T>(T[], string, int) Method

Summary

Compares the name of each of the `objects` and returns the one that is closest to the `nameHint`.

See also: InspectorGadgets.IGUtils.CalculateLevenshteinDistance(System.String,System.String).
Assembly
Kybernetik.InspectorGadgets.dll
Namespace
InspectorGadgets
Containing Type
IGUtils

Syntax

public static T GetBestMatch<T>(T[] objects, string nameHint, out int score) where T : Object

Type Parameters

Name Description
T

Parameters

Name Type Description
objects T[]
nameHint string
score int

Return Value

Type Description
T