Пример #1
0
 public ComputerBuilder addMotherboard(Motherboard motherboard)
 {
     computer.Motherboard = motherboard;
     return(this);
 }
 /// <summary>
 /// Initializes the Computer with a predefined motherboard, harddrive, and case
 /// </summary>
 /// <param name="motherboard">The motherboard</param>
 /// <param name="hardDrive">The harddrive</param>
 /// <param name="case">The casee</param>
 public Computer(Motherboard motherboard, HardDrive hardDrive, Case @case)
 {
     Motherboard = motherboard;
     HardDrive   = hardDrive;
     Case        = @case;
 }