# Sandbox.BaseInventoryComponent.SwitchToBest

```csharp
void SwitchToBest()
```

Switches to the best available item (see [Sandbox.BaseInventoryComponent.GetBestItem](/api/Sandbox.BaseInventoryComponent/GetBestItem)).

Declared in [Sandbox.BaseInventoryComponent](/api/Sandbox.BaseInventoryComponent).
Assembly: `Sandbox.Engine`.
