public VehicleWheel this[int index]
 {
     get
     {
         VehicleWheel wheel = null;
         if (!this._vehicleWheels.TryGetValue(index, out wheel))
         {
             wheel = new VehicleWheel(this._owner, index);
             this._vehicleWheels.Add(index, wheel);
         }
         return(wheel);
     }
 }
Beispiel #2
0
        public VehicleWheel this[int index]
        {
            get
            {
                if (!_vehicleWheels.TryGetValue(index, out VehicleWheel vehicleWheel))
                {
                    vehicleWheel = new VehicleWheel(_owner, index);
                    _vehicleWheels.Add(index, vehicleWheel);
                }

                return(vehicleWheel);
            }
        }