Table of Contents

Class AvaloniaListExtensions

Namespace
CarinaStudio.Collections
Assembly
CarinaStudio.AppBase.Avalonia.dll

Extension methods for Avalonia.Collections.AvaloniaList<T> and Avalonia.Collections.IAvaloniaList<T>.

public static class AvaloniaListExtensions
Inheritance
AvaloniaListExtensions
Inherited Members

Methods

IsEmpty<T>(AvaloniaList<T>)

Check whether the given list is empty or not.

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

Parameters

list AvaloniaList<T>

List to check.

Returns

bool

True if the list is empty.

Type Parameters

T

Type of element of list.

Remarks

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

IsEmpty<T>(IAvaloniaList<T>)

Check whether the given list is empty or not.

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

Parameters

list IAvaloniaList<T>

List to check.

Returns

bool

True if the list is empty.

Type Parameters

T

Type of element of list.

Remarks

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

IsNotEmpty<T>(AvaloniaList<T>?)

Check whether the given list is not empty or not.

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

Parameters

list AvaloniaList<T>

List to check.

Returns

bool

True if the list is not empty.

Type Parameters

T

Type of element of list.

Remarks

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

IsNotEmpty<T>(IAvaloniaList<T>?)

Check whether the given list is not empty or not.

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

Parameters

list IAvaloniaList<T>

List to check.

Returns

bool

True if the list is not empty.

Type Parameters

T

Type of element of list.

Remarks

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

IsNullOrEmpty<T>(AvaloniaList<T>?)

Check whether given list is null/empty or not.

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

Parameters

list AvaloniaList<T>

List to check.

Returns

bool

True if the list is null or empty.

Type Parameters

T

Type of element of list.

Remarks

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

IsNullOrEmpty<T>(IAvaloniaList<T>?)

Check whether given list is null/empty or not.

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

Parameters

list IAvaloniaList<T>

List to check.

Returns

bool

True if the list is null or empty.

Type Parameters

T

Type of element of list.

Remarks

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