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

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -