c# - Making instance values equal -
how make true????
student studentinstance1 = new student(); student studentinstance2 = new student(); studentinstance1.name = "qwerty"; studentinstance2.name = "qwerty"; if(studentinstance1==studentinstance2)
i need answer how make instance values equal???
correct way override equals()
, gethashcode()
methods in student
class. here article in msdn how it: http://msdn.microsoft.com/en-gb/library/ms173147(v=vs.90).aspx
Comments
Post a Comment