Exemplo n.º 1
0
 public Computer ConstructComputer()
 {
     return(builder?.Build());
 }
 /// <summary>
 /// Constructs a computer using a builder
 /// </summary>
 /// <param name="builder">The builder</param>
 /// <returns>The constructed computer</returns>
 public Computer Construct(IComputerBuilder builder)
 {
     return(builder.Build());
 }