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.
我知道你可以做到这一点
public String<T> Get { get; private set; }
问题是我希望 set 方法可以从同一个 DLL 中的不同类访问(即:内部)
这可能吗?
是的,您可以将任何访问修饰符与自动属性访问器一起使用:
public String<T> Get { get; internal set; }