where keyword in c#

C#
public class AGenericClass<T> where T : IComparable<T> { }

Source

Also in C#: