你的位置: 码友网首页 / 资讯源列表 / Creating an Append-Only List Wrapper in C#

关于[Creating an Append-Only List Wrapper in C#]的摘要:

Sometimes, you need a list, but you don't want people messing with the things you've added once they're added. I was working on a project recently where I needed exactly this functionality. Towards that end, I created a AppendOnlyStringList wrapper class. There are other ways I could have done this (and if you have other ideas on how to implement this, let me know in the chat below!), but as I'm comfortable with using Lists I decided to take the following approach...

原文地址: https://ilyana.dev/blog/2021-06-21-append-only-list/

收录时间: 2021-06-26 浏览量: 860 分类: C#

| 0 收藏 | 0