Questions tagged [immutable-collections]

Immutable Collections is a library containing immutable data structures created by Microsoft for .NET.

Immutable Collections is a library containing immutable data structures created by Microsoft for .NET.

Related tags

93 questions
-1
votes
1 answer

Differences between ways of creating ImmutableList

What is the differences between ways of creating ImmutableList? List numbers = new List(){0, 1, 2, 3}; ImmutableList immutableList = numbers.ToImmutableList(); ImmutableList immutableList = ImmutableList.Create(0, 1, 2,…
-1
votes
2 answers

Less expensive way of converting a double[] to an immutable list

I want to convert an array double[] to an immutable collection for use in a value object. However, I am dealing with a very large array and I keep getting the error java.lang.OutOfMemoryError: Java heap space. I am currently using…
-3
votes
2 answers

Does ImmutableList have AsReadOnly like method?

AsReadOnly() is a convenient method to get a read-only image (not expensive compared to immutable collections' copies) of a collection. I am wondering if ImmutableList has AsReadOnly like method? If no, any easy way to implement similarly?
user1899020
  • 13,167
  • 21
  • 79
  • 154
1 2 3 4 5 6
7