Table of Contents

Class ImmutableListExtensions

Namespace
Payetools.Common.Extensions
Assembly
Payetools.Common.dll

Extension methods for ImmutableList<T>.

public static class ImmutableListExtensions
Inheritance
ImmutableListExtensions
Inherited Members

Methods

ReplaceLast<T>(ImmutableList<T>, T)

Replaces the last item in the list returning a new immutable list.

public static ImmutableList<T> ReplaceLast<T>(this ImmutableList<T> list, T newValue)

Parameters

list ImmutableList<T>

List to be updated.

newValue T

New value to inserted in place of the current last value.

Returns

ImmutableList<T>

A new ImmutableList<T> with the last item in the list updated.

Type Parameters

T

Type of object that the list contains.