且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

控制对字段的读/写访问

更新时间:2023-11-30 12:25:04

我知道这个线程已经使用了一年,但是我想知道这样的事情是否有意义:

I know this thread is one year old, but I'm wondering if it would make sense to have something like this:

 interface ReadOnlyA
 {
    object A { get; }
 }

 interface WriteableA : ReadOnlyA
 {
   new object A {get; set;}
 }