ReplaceOrAdd(T) Method

Definition

Namespace Markdig.Helpers
Assembly Markdig.dll

Replaces TItem with newItem or adds newItem.

public bool ReplaceOrAdd<TItem>(T newItem)
    where TItem : T

Type parameters

TItem
Item type to find in the list

Parameters

newItem
{T}

Object to add/replace the found item with

Returns

Boolean
true if a replacement was made; otherwise false.