ImmutableArraynumbers = ImmutableArray.Create(1, 2, 3, 4); bool allPositive = numbers.All(num => num > 0); // true
ImmutableArrayempty = ImmutableArray.Create (); bool isAny = empty.All(num => num > 0); // true
ImmutableArrayOverall, ImmutableArray provides a way to ensure that read-only collections remain unchanged and consistent throughout a program.fruits = ImmutableArray.Create("apple", "banana", "orange"); bool allApples = fruits.All(fruit => fruit == "apple"); // false