# GetSourceExtension<T>()

> Searches for a Source Extension of the given type, and returns it. Returns null if the type cannot be found.

## Definition

* **Type:** Method
* **Namespace:** [Unity.SmartStrings](/engine/6000.7/script-reference/unity/smartstrings.md)
* **Assembly:** UnityEngine.SmartStringsModule

```csharp
public T GetSourceExtension<T>() where T : class, ISource
```

### Returns

| Type | Description                                                                                                                            |
| ---- | -------------------------------------------------------------------------------------------------------------------------------------- |
| T    | The class implementing [ISource](/engine/6000.7/script-reference/unity/smartstrings/core/extensions/isource.md) if found, else `null`. |
