Skip to main content

ReadOnlyListBase<T> Class

Definition

Assembly:Avalonia.Controls.TreeDataGrid
Package:Avalonia.Controls.TreeDataGrid

Base class implementing a read-only list collection.

public class ReadOnlyListBase<T>

Inheritance: object -> ReadOnlyListBase<T>

Implements: IEnumerable<>, IReadOnlyCollection<>, IReadOnlyList<>, ICollection, IEnumerable, IList

Remarks

This class should be considered internal to the TreeDataGrid package and is not intended for use outside of this package.

Provides a base implementation for read-only list collections, implementing both System.Collections.Generic.IReadOnlyList<T> and System.Collections.IList interfaces.

Methods

NameDescription
GetEnumeratorReturns an enumerator that iterates through the collection.

GetEnumerator Method

Returns an enumerator that iterates through the collection.

public System.Collections.Generic.IEnumerator<T> GetEnumerator()

Returns

System.Collections.Generic.IEnumerator<T>

An enumerator that can be used to iterate through the collection.

Properties

NameDescription
CountGets the number of elements in the collection.
ItemNo summary available.

Count Property

Gets the number of elements in the collection.

public int Count { get; set; }

Item Property

public T Item { get; set; }