Not good, but you can write it as an extension method:
public static class Extensions { public static bool In<T>(this T value, params T[] items) { return items.Contains(value); } } if (v.In(1,2,3,5)) { }
I have not tested it, but it should be fine.
UPDATE: as suggested by OP, I fixed a few typos.
pblasucci
source share