Class
NaturalStringComparer

Uses the file name comparison methods used in Windows. For example 'new folder 10' comes after 'new folder 9'.

Definition

Namespace:Telerik.Windows.Controls.FileDialogs.ShellHelpers

Assembly:Telerik.Windows.Controls.FileDialogs.dll

Syntax:

cs-api-definition
[Obsolete("Method is slow because of the native call. Use local comparer / sorting method instead.")]
public class NaturalStringComparer : IComparer<FileSystemInfoWrapper>

Inheritance: objectNaturalStringComparer

Implements: IComparer<FileSystemInfoWrapper>

Properties

Instance

The single NaturalStringComparer instance that is ready to use.

Declaration

cs-api-definition
public static NaturalStringComparer Instance { get; }

Property Value

NaturalStringComparer

Methods

Compare(FileSystemInfoWrapper, FileSystemInfoWrapper)

Wraps the method.

Declaration

cs-api-definition
public int Compare(FileSystemInfoWrapper x, FileSystemInfoWrapper y)

Parameters

x

FileSystemInfoWrapper

y

FileSystemInfoWrapper

Returns

int

Implements IComparer<FileSystemInfoWrapper>.Compare(FileSystemInfoWrapper, FileSystemInfoWrapper)