Class FileSystemItemComparer
Represents a FileSystemItem comparison operation that compares FileSystemItems using FileSortOrder
Inheritance
System.Object
FileSystemItemComparer
Implements
System.Collections.Generic.IComparer<FileSystemItem>
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: EPiServer.Web.WebControls
Assembly: EPiServer.Web.WebControls.dll
Version: 8.11.0Syntax
public class FileSystemItemComparer : IComparer<FileSystemItem>
Constructors
FileSystemItemComparer()
Initializes a new instance of the FileSystemItemComparer class.
Declaration
public FileSystemItemComparer()
Remarks
Sets the default FileSortOrder to None
FileSystemItemComparer(FileSortOrder)
Initializes a new instance of the FileSystemItemComparer class.
Declaration
public FileSystemItemComparer(FileSortOrder sortOrder)
Parameters
Type | Name | Description |
---|---|---|
FileSortOrder | sortOrder |
Methods
Compare(FileSystemItem, FileSystemItem)
Compares two FileSystemItems and returns an indication of their relative sort order.
Declaration
public int Compare(FileSystemItem x, FileSystemItem y)
Parameters
Type | Name | Description |
---|---|---|
FileSystemItem | x | A FileSystemObject to compare to y. |
FileSystemItem | y | A FileSystemObject to compare to x. |
Returns
Type | Description |
---|---|
System.Int32 |
Implements
System.Collections.Generic.IComparer<T>