# Sandbox.BaseInventoryItem.CanSwitchTo

```csharp
bool CanSwitchTo()
```

True when the inventory is allowed to make this the active item (see [Sandbox.BaseInventoryItem.OnCanSwitchTo](/api/Sandbox.BaseInventoryItem/OnCanSwitchTo)).
Queryable by UI - a pure check, nothing happens.

### Returns

`bool`

Declared in [Sandbox.BaseInventoryItem](/api/Sandbox.BaseInventoryItem).
Assembly: `Sandbox.Engine`.
