tommy_tee tommy_tee - 1 year ago 127
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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download