Exemplo n.º 1
0
 //供克隆方法使用的私有构造函数
 private DeepRestrationInfo(Nationality nation)
 {
     this.nationality = nation.Clone() as Nationality;
 }
Exemplo n.º 2
0
 //含参构造函数,供普通创建过程使用
 public DeepRestrationInfo(string name)
 {
     this.name   = name;
     nationality = new Nationality();
 }