New to Telerik UI for WPFStart a free 30-day trial

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:

C#
[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

The single NaturalStringComparer instance that is ready to use.

C#
public static NaturalStringComparer Instance { get; }

Methods

Wraps the method.

C#
public int Compare(FileSystemInfoWrapper x, FileSystemInfoWrapper y)
Parameters:xFileSystemInfoWrapperyFileSystemInfoWrapperReturns:

int

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