ReadOnlyCollection<T>.Empty Property

Definition

Gets an empty ReadOnlyCollection<T>.

C#
public static System.Collections.ObjectModel.ReadOnlyCollection<T> Empty { get; }

Property Value

An empty ReadOnlyCollection<T>.

Remarks

The returned instance is immutable and will always be empty.

Applies to

Product Versions
.NET 8, 9, 10