public static RegNumber AssignRegNumber()
 {
     if (instance == null)
     {
         instance = new RegNumber();
     }
     instance.Number++;
     return(instance);
 }
Esempio n. 2
0
 public Registrant(string name, DateTime dateOfBirth, Address address, long phoneNumber) : this(name, dateOfBirth, address, phoneNumber, RegNumber.AssignRegNumber().Number)
 {
 }
Esempio n. 3
0
 public Club(string name, Address address, long phoneNumber) : this(name, address, phoneNumber, RegNumber.AssignRegNumber().Number)
 {
 }