Articles → CSHARP → Frozen Collection In C#
Frozen Collection In C#
Purpose
Example
using System.Collections.Frozen;
List<int> normalList = new List<int> { 1, 2, 3 };
FrozenSet<int> frozenSet = normalList.ToFrozenSet();
foreach(int item in frozenSet)
Console.WriteLine("Item is:"+ item);
Output