London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Interface ITemplateModelComparerFactory

Factory responsible for creating a System.Collections.Generic.IComparer<T> for a specific model type.

Namespace: EPiServer.DataAbstraction.RuntimeModel
Assembly: EPiServer.dll
Version: 10.10.4
Syntax
public interface ITemplateModelComparerFactory

Methods

Create(Type)

Creates a new System.Collections.Generic.IComparer<T> for the specified model type.

Declaration
IComparer<TemplateModel> Create(Type modelType)
Parameters
Type Name Description
System.Type modelType

Type of the model that the comparison should be made on.

Returns
Type Description
System.Collections.Generic.IComparer<TemplateModel>

A comparer that can be used to sort TemplateModel instances.

Extension Methods