正確的接口和實現該接口的View(一個Web頁面)應該采用如下的定義方式
public interface IEmployeeSearchView
{
IEnumerable<string> Departments { set; }
string SelectedDepartment { get; }
IEnumerable<Employee> Employees { set; }
}
public partial class EmployeeSearchView: Page
{
//其他成員
public IEnumerable<string> Departments
{
set
{
this
this
}
}
public string SelectedDepartment
{
get { return this
}
public IEnumerable<Employee> Employees
{
set
{
this
this
}
}
}
返回目錄
編輯推薦
Java程序性能優化
Visual C++音頻/視頻技術開發與實戰
[
From:http://tw.wingwit.com/Article/program/net/201311/16128.html