# Sandbox.TypeDescription.GetAttribute

```csharp
T GetAttribute(bool inherited = False)
```

Returns the first attribute of given type, if any are present.

### Parameters

- `inherited` (`bool`), default `False`

### Returns

`T`

Declared in [Sandbox.TypeDescription](/api/Sandbox.TypeDescription).
Assembly: `Sandbox.Reflection`.
