Collapse All
Expand All
C#
Antikaria MUD Code Documentation
Misc
.
.
::
.
.
LevenshteinDistance Method
Misc Class
See Also
Send Feedback
Calculate the Levenshtein distance between two strings.
Namespace:
BaseLib.Util
Assembly:
BaseLib
(in BaseLib.dll) Version: 0.5.0.0
Syntax
C#
public
static
int
LevenshteinDistance
(
this
string
s
,
string
t
)
Parameters
s
Type:
System
.
.
::
.
.
String
First string.
t
Type:
System
.
.
::
.
.
String
Second string.
Return Value
The levenshtein distance between the two strings.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String
. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)
or
Extension Methods (C# Programming Guide)
.
See Also
Misc Class
Misc Members
BaseLib.Util Namespace