String immutability in C#

前端 未结 6 1784
暖寄归人
暖寄归人 2020-12-13 19:31

I was curious how the StringBuilder class is implemented internally, so I decided to check out Mono\'s source code and compare it with Reflector\'s disassembled code of the

6条回答
  •  抹茶落季
    2020-12-13 20:15

    You can read these posts Immutable types: understand their benefits and use them

    and Manage states in a multi-threaded environment without the synchronization pain

    Also the tool NDepend comes with some facilities to cop with immutable types and pure methods.

提交回复
热议问题