# Sandbox.TypeDescription.GetAttributes

```csharp
IEnumerable<T> GetAttributes(bool inherited = False)
```

Returns all attributes of given type, if any are present.

### Parameters

- `inherited` (`bool`), default `False`

### Returns

`IEnumerable<T>`

Declared in [Sandbox.TypeDescription](/api/Sandbox.TypeDescription).
Assembly: `Sandbox.Reflection`.
