Example #1
0
 public Bicycle(string name, WheelSize wheel) : base(name)
 {
 }
Example #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="wheelSize"></param>
 /// <returns></returns>
 public static Wheel CreateWheel(WheelSize wheelSize) =>
 wheelSize switch
 {
Example #3
0
 public override string ToString()
 {
     return(string.Format("Машина: {0}, {1}, {2}", ColorName, WheelSize.ToString(), IsBroken.ToString()));
 }