# Sandbox.Internal.TypeLibrary.GetTypesWithAttribute

## Overload 1

```csharp
IReadOnlyList<System.ValueTuple<TypeDescription,T>> GetTypesWithAttribute()
```

Get all attributes of this type. Returns the type description along with the attribute. This will 
also return types that inherit the attribute from base classes too.

### Returns

`IReadOnlyList<System.ValueTuple<TypeDescription,T>>`

## Overload 2

```csharp
IReadOnlyList<System.ValueTuple<TypeDescription,T>> GetTypesWithAttribute(bool inherited)
```

Get all attributes of this type. Returns the type description along with the attribute.
If inherited is false, we will return only classes that contain this attribute directly.

### Parameters

- `inherited` (`bool`)

### Returns

`IReadOnlyList<System.ValueTuple<TypeDescription,T>>`

Declared in [Sandbox.Internal.TypeLibrary](/api/Sandbox.Internal.TypeLibrary).
Assembly: `Sandbox.Reflection`.
