tommy_tee tommy_tee - 1 month ago 6
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

Comments