Exemplo n.º 1
0
 public Order(int id, Client client, Skates skates)
 {
     if (id < 0)
     {
         throw new ArgumentOutOfRangeException("Id is not correct!");
     }
     this.id = id;
     Client  = client;
     Skates  = skates;
 }
Exemplo n.º 2
0
 public Order(SerializationInfo info, StreamingContext content)
 {
     this.id     = (int)info.GetValue("Id", typeof(int));
     this.client = (Client)info.GetValue("Client", typeof(Client));
     this.skates = (Skates)info.GetValue("Skates", typeof(Skates));
 }