I have a lot of comparer classe开发者_如何学Gos where the class being compared is simply checking the name property of the object and doing a string compare.For example: