# Sandbox.Compiler.HasReference

```csharp
bool HasReference(string referenceName, bool deep = False)
```

Returns true if `P:Sandbox.Compiler._references` contains the given reference assembly name.
If `deep` is true, referenced compilers are searched too.

### Parameters

- `referenceName` (`string`)
- `deep` (`bool`), default `False`

### Returns

`bool`

Declared in [Sandbox.Compiler](/api/Sandbox.Compiler).
Assembly: `Sandbox.Compiling`.
