Sha*_*bie 3 .net oop interface
接口声明属性而不是方法是否可以接受? 哪个更优选? interface ITaggable {string GetTag(); } 或 界面ITaggable {Tag {get;}}
生活在.Net世界.
Jon*_*eet 7
绝对.在接口中使用与在类中完全相同的属性.
框架中的示例包括IEnumerator<T>.Current和ICollection<T>.Count.
IEnumerator<T>.Current
ICollection<T>.Count
归档时间:
16 年,5 月 前
查看次数:
176 次
最近记录:
13 年,9 月 前