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) where T : Object
Type Parameters
| Name | Description |
|---|---|
| T |
Parameters
| Name | Type | Description |
|---|---|---|
| objects | T[] | |
| nameHint | string |
Return Value
| Type | Description |
|---|---|
| T |