Immutable type and property in C#

后端 未结 3 676
既然无缘
既然无缘 2020-12-03 04:57

What is meant by immutable type and immutable property in C# ? can you give simple example?

3条回答
  •  无人及你
    2020-12-03 05:28

    fretje is correct. The most popular example of an immutable type is a string object in C#. This is the entire reason that StringBuilder exists.

提交回复
热议问题