UtilStringGetSimilarity Method

Computes the similarity percentage between two strings, by using the Levenshtein algorithm.

Definition

Namespace: DevCase.Core.DataProcessing.Common
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static double GetSimilarity(
	string first,
	string second
)

Parameters

first  String
The first string to compare.
second  String
The second string to compare.

Return Value

Double
The similarity percentage between the two strings.

A value of 1 means the two strings are equal.

A value of 0 means the two strings have no similarity between.

Remarks

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

Exceptions

ArgumentNullException

See Also