Beispiel #1
0
 private string Convert(Lamp lamp) =>
 lamp.IsOff
         ? "O"
         : lamp.Color == Color.Red
             ? "R"
             : "Y";