The System.Web.Mvc.CompareAttribute checks if two properties in a Model are equal, but I wanted to implement a validation attribute to check if x < y or x > y, instead of just x == y. All the examples I've found so far on Google show how to implement an attribute for class-level validation, but I haven't yet found any examples that show it for property-level validation.