Try our conversational search powered by Generative AI!

Interface ITemplateModelComparerFactory

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

Namespace: EPiServer.DataAbstraction.RuntimeModel
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
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