Here are the examples of the csharp api System.Collections.Generic.List.Remove(Wheel) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
Source : Vehicle.cs
with The Unlicense
from aeroson
with The Unlicense
from aeroson
public void RemoveWheel(Wheel wheel)
{
if (wheel.vehicle == this)
{
wheel.OnRemovedFromVehicle();
Wheels.Remove(wheel);
}
else
throw new InvalidOperationException("Can't remove a wheel from a vehicle that does not own it.");
}