Class NaturalStringComparer
Uses the file name comparison methods used in Windows. For example 'new folder 10' comes after 'new folder 9'.
Inheritance
Namespace: Telerik.Windows.Controls.FileDialogs.ShellHelpers
Assembly: Telerik.Windows.Controls.FileDialogs.dll
Syntax
public class NaturalStringComparer : Object, IComparer<FileSystemInfoWrapper>
Properties
Instance
The single NaturalStringComparer instance that is ready to use.
Declaration
public static NaturalStringComparer Instance { get; }
Property Value
NaturalStringComparer
|
Methods
Compare(FileSystemInfoWrapper, FileSystemInfoWrapper)
Wraps the Telerik.Windows.Controls.FileDialogs.ShellHelpers.NativeMethods.StrCmpLogicalW(System.String,System.String) method.
Declaration
public int Compare(FileSystemInfoWrapper x, FileSystemInfoWrapper y)
Parameters
FileSystemInfoWrapper
x
|
FileSystemInfoWrapper
y
|
Returns
System.Int32
|