【发布时间】:2011-05-05 11:50:15
【问题描述】:
想象一下:
public class Foo
{
private IList<string> WasSet;
public string Prop1 {get;set;}
public bool Prop2 {get;set;}
...
public int Prop900 {get;set;}
}
我想做:
WasSet.Add(PropertyName);
设置属性时。
在不去掉自动属性的情况下这可能吗?
【问题讨论】: