---
uid: BenchmarkDotNet.Samples.IntroFilters
---

## Sample: IntroFilters

You can either use one of the predefined `Filter` types or create a custom type which implements `IFilter` interface. 

### Source code

[!code-csharp[IntroFilters.cs](../../../samples/BenchmarkDotNet.Samples/IntroFilters.cs)]

### Links

* @docs.filters
* The permanent link to this sample: @BenchmarkDotNet.Samples.IntroFilters

---