SaaS CMS has officially launched! Learn more now.

Interface ITemplateModelComparerFactory

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

Namespace: EPiServer.DataAbstraction.RuntimeModel
Assembly: EPiServer.Cms.AspNetCore.Templating.dll
Version: 12.0.3
Syntax
public interface ITemplateModelComparerFactory

Methods

Create(Type)

Creates a new System.Collections.Generic.IComparer<> 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