interface IFoo
{
public void Bootstrap();
}
public static class Extensions
public static void BootstrapAll<T>(this IEnumerable<T> list) where T : IFoo
// rider is complaining about IFoo here but this is surely safe, no?
foreach (IFoo blah in list)
blah.Bootstrap();