Are immutable arrays possible in .NET?

后端 未结 9 820
忘了有多久
忘了有多久 2020-12-05 23:22

Is it possible to somehow mark a System.Array as immutable. When put behind a public-get/private-set they can\'t be added to, since it requires re-allocation a

9条回答
提交回复
热议问题