This code set an employee's salary to =A320,000 by default. I'd like to
set this at runtime, i.e. let the variable _recommendSalary be the
default value.
public class Employee
{
private string _Name =3D "";
private int age =3D 0;
private string _Position =3D "";
private string _Salary =3D "";
private string _recommendSalary =3D "=A322,000";
private string[] _SalaryOption =3D { "=A320,000", "=A325,000",
"=A330,000", "=A340,000" };
[DefaultValueAttribute("=A320,000")]
public string Salary { ... }
// properties to access member values
}
Been looking at this for a while but unsure which method that would
handle such a property. I have both an EmployeeCollection class that
implements ICustomTypeDescriptor and
EmployeeCollectionPropertyDescriptor that inherets from
PropertyDescriptor.
Appreciate any input.