Search Results for

    Show / Hide Table of Contents

    Class StringExtensions

    Inheritance
    System.Object
    StringExtensions
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Xbim.Common.XbimExtensions
    Assembly: Xbim.Common.dll
    Syntax
    public static class StringExtensions

    Methods

    | Improve this Doc View Source

    LevenshteinDistance(String, String)

    Compute Levenshtein distance. Code origin: http://stackoverflow.com/questions/6944056/c-sharp-compare-string-similarity

    Declaration
    public static int LevenshteinDistance(this string s, string t)
    Parameters
    Type Name Description
    System.String s

    String 1

    System.String t

    String 2

    Returns
    Type Description
    System.Int32

    Distance between the two strings. The larger the number, the bigger the difference.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 xbim