Table of Contents

Class LinkedListExtensions

Namespace
CarinaStudio.Collections
Assembly
CarinaStudio.AppBase.Core.dll

Extension methods for LinkedList<T>.

public static class LinkedListExtensions
Inheritance
LinkedListExtensions
Inherited Members

Methods

IsEmpty<T>(LinkedList<T>)

Check whether the given linked-list is empty or not.

public static bool IsEmpty<T>(this LinkedList<T> list)

Parameters

list LinkedList<T>

Linked-list to check.

Returns

bool

True if the linked-list is empty.

Type Parameters

T

Type of element of linked-list.

Remarks

The method is available for target framework before .NET 9.

IsNotEmpty<T>(LinkedList<T>?)

Check whether the given linked-list is not empty or not.

public static bool IsNotEmpty<T>(this LinkedList<T>? list)

Parameters

list LinkedList<T>

Linked-list to check.

Returns

bool

True if the linked-list is not empty.

Type Parameters

T

Type of element of linked-list.

Remarks

The method is available for target framework before .NET 9.

IsNullOrEmpty<T>(LinkedList<T>?)

Check whether given linked-list is null/empty or not.

public static bool IsNullOrEmpty<T>(this LinkedList<T>? list)

Parameters

list LinkedList<T>

Linked-list to check.

Returns

bool

True if the linked-list is null or empty.

Type Parameters

T

Type of element of linked-list.

Remarks

The method is available for target framework before .NET 9.