ReadOnlyDictionary<TKey,TValue>.Empty Property

Definition

C#
public static System.Collections.ObjectModel.ReadOnlyDictionary<TKey,TValue> Empty { get; }

Property Value

An empty ReadOnlyDictionary<TKey,TValue>.

Remarks

The returned instance is immutable and will always be empty.

Applies to

Product Versions
.NET 8, 9, 10