c# generic abstract method

C#
public abstract class FilterBase<T>
{
    public abstract IQueryable<T> GetFilter(IQueryable<T> query);
}
Source

Also in C#: