Example #1
0
File: Bus.cs Project: CAHbl4/csharp
 public double this[BusSeatTypes t]
 {
     get
     {
         return base[(int)t];
     }
     set
     {
         base[(int)t] = value;
     }
 }
Example #2
0
File: Bus.cs Project: CAHbl4/csharp
 public void SetCostType(BusSeatTypes type, double cost)
 {
     base[(int)type] = cost;
 }