tommy_tee tommy_tee - 5 months ago 38
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

C# does not support immutability like that