How to compare two objects in c#?

Posted by Gg under ASP.NET on 7/15/2011 | Points: 10 | Views : 34329 | Status : [Member] | Replies : 4
Hi,

How to compare two objects in c#?
Tell me the scenario where will use Arraylist and Hast Table in .net?
What is the purpose of we are using Web service?

Thanks,
gg.




Responses

Posted by: Nitinjs on: 7/15/2011 [Member] Starter | Points: 25

Up
0
Down
Check the CompareObjects class at http://comparenetobjects.codeplex.com/

you should override the
Equals(object o)
method when comparing two objects

cheers

Gg, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Lakn2 on: 7/15/2011 [Member] Starter | Points: 25

Up
0
Down
Refer this

http://stackoverflow.com/questions/798117/comparing-2-custom-objects-c

http://www.devasp.net/net/articles/display/928.html

Thanks&Regards
LakshmiNarayana Nalluri.

Gg, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naimishforu on: 7/15/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Why can't one provide the implementation??

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

Gg, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response