Assembly: OptimaJet.Workflow.Api

Class Sort<TField>

OptimaJet.Workflow.Api.Models.Sort<TField>

A collection sorting rule identifying a field and its direction.

public class Sort<TField> where TField : Enum

Constructors

public Sort(TField field, Direction direction) #

Parameters

Name
Type
Description
field
{TField}
direction
Direction

Properties

[JsonConverter(typeof(StringEnumConverter))] [JsonConverter(typeof(JsonStringEnumConverter))] public TField Field { get; } #
Gets the field value.
[JsonConverter(typeof(StringEnumConverter))] [JsonConverter(typeof(JsonStringEnumConverter))] public Direction Direction { get; } #
Gets the direction value.

Methods

public static bool TryParse(string? value, out Sort<TField>? sort) #

Parameters

Name
Type
Description
value
String
sort
Sort<TField>

Returns

Type
Description
Boolean