e1 is Employee的实例对象, Hr是HumanResource的实例对象public class HumanResource
{
Hashtable Employees = new Hashtable();
public Employee this[string EmpID ] {
get { return (Employee)Employees; }
set { Employees =(Employee) value; }
}
} is like a type-safe dictionary, takes a string, saves or returns a Employee object
{
Hashtable Employees = new Hashtable();
public Employee this[string EmpID ] {
get { return (Employee)Employees; }
set { Employees =(Employee) value; }
}
} is like a type-safe dictionary, takes a string, saves or returns a Employee object
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货