static public Person operator <(Person p1, Person p2)
where Person is a class displays an error message
"One of the parameters of a binary operator must be the containing type"

Shouldnt that be static public bool operator < (Person p1, Person p2) ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.