Table of Contents

Class DisplayItemModelExtensions

Namespace
Songhay.Extensions
Assembly
SonghayCore.dll

Extensions of DisplayItemModel.

public static class DisplayItemModelExtensions
Inheritance
DisplayItemModelExtensions
Inherited Members

Methods

HasTag(DisplayItemModel?, Func<object?, bool>?)

Returns true when the item has the Tag based on the specified evaluator.

public static bool HasTag(this DisplayItemModel? data, Func<object?, bool>? evaluator)

Parameters

data DisplayItemModel

The DisplayItemModel.

evaluator Func<object, bool>

The predicate for evaluating Tag.

Returns

bool

ToMenuDisplayItemModel(DisplayItemModel?)

Converts the DisplayItemModel into a menu display item model.

public static MenuDisplayItemModel? ToMenuDisplayItemModel(this DisplayItemModel? data)

Parameters

data DisplayItemModel

The DisplayItemModel.

Returns

MenuDisplayItemModel

WithTag(DisplayItemModel?, object)

Fluently sets Tag.

public static DisplayItemModel? WithTag(this DisplayItemModel? data, object tag)

Parameters

data DisplayItemModel

The DisplayItemModel.

tag object

The value of Tag.

Returns

DisplayItemModel