>class xxx<T> where T : IComparable<T> >{ > >} >public static partial class ExtensionMethods >{ > public static bool InList<T>(this T s, params T[] list) where T : IEquatable<T> > { > return list.Contains(s); > } >} > >>If I use « and » instead of LT and GT you see what I mean but I have to manually edit the code
>class xxx«T» where T : IComparable«T» >{ > >} >public static partial class ExtensionMethods >{ > public static bool InList«T»(this T s, params T[] list) where T : IEquatable«T» > { > return list.Contains(s); > } >} >>