Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的一门课程中有以下字段声明
private readonly string name = "some name";
如何在运行时使用 FieldDefinition 或其他方式删除程序集中的“只读”?
我急于得到这个答案,后来自己尝试了。所以发现下面的属性会做到这一点
IsInitOnly