tommy_tee tommy_tee - 1 year ago 80
C++ Question

How to create a C# List with const content?

In C#: Is there a way to define the content of a List const/readonly like in C++?

C++ Example:

List<const Content> listWithConstContent;

Answer Source

C# does not support immutability like that