Click here to Skip to main content
15,924,452 members
Home / Discussions / C#
   

C#

 
Generalcomparing objects Pin
saud_a_k17-Jun-04 1:15
saud_a_k17-Jun-04 1:15 
GeneralRe: comparing objects Pin
Corinna John17-Jun-04 1:27
Corinna John17-Jun-04 1:27 
GeneralRe: comparing objects Pin
saud_a_k17-Jun-04 1:58
saud_a_k17-Jun-04 1:58 
GeneralRe: comparing objects Pin
Corinna John17-Jun-04 2:03
Corinna John17-Jun-04 2:03 
GeneralRe: comparing objects Pin
saud_a_k17-Jun-04 2:12
saud_a_k17-Jun-04 2:12 
GeneralRe: comparing objects Pin
saud_a_k17-Jun-04 2:25
saud_a_k17-Jun-04 2:25 
GeneralRe: comparing objects Pin
Heath Stewart17-Jun-04 1:30
protectorHeath Stewart17-Jun-04 1:30 
GeneralRe: comparing objects Pin
sreejith ss nair17-Jun-04 1:43
sreejith ss nair17-Jun-04 1:43 
see here in C# we have Equal method to check this.

bool Object.Equal(object obj) >>signature

this will determine that System.object is equal to the specified System.Object.And if both objects are same it will return true otherwise false.

your eg :

Object1.Equal(Object2);

this is one of easyest method.

Another method is Implementing IComparable interface. And this interface have only one abstract method called CampareTo(). you have to over ride this method in the type whose implementing this Icomparable interface.

you will get nice explanation and example for this in MSDN.

Please feel free to contact.

Sreejith S S Nair - Bangalore
GeneralRe: comparing objects Pin
saud_a_k17-Jun-04 1:48
saud_a_k17-Jun-04 1:48 
GeneralRe: comparing objects Pin
Heath Stewart17-Jun-04 1:54
protectorHeath Stewart17-Jun-04 1:54 
GeneralRe: comparing objects Pin
Heath Stewart17-Jun-04 1:49
protectorHeath Stewart17-Jun-04 1:49 
GeneralRe: comparing objects Pin
saud_a_k17-Jun-04 2:03
saud_a_k17-Jun-04 2:03 
GeneralRe: comparing objects Pin
Heath Stewart17-Jun-04 2:10
protectorHeath Stewart17-Jun-04 2:10 
GeneralRe: comparing objects Pin
saud_a_k17-Jun-04 2:41
saud_a_k17-Jun-04 2:41 
GeneralRe: comparing objects Pin
Heath Stewart17-Jun-04 3:00
protectorHeath Stewart17-Jun-04 3:00 
GeneralRe: comparing objects Pin
saud_a_k17-Jun-04 18:21
saud_a_k17-Jun-04 18:21 
GeneralRe: comparing objects Pin
Heath Stewart17-Jun-04 18:38
protectorHeath Stewart17-Jun-04 18:38 
GeneralRe: comparing objects Pin
saud_a_k17-Jun-04 18:52
saud_a_k17-Jun-04 18:52 
GeneralRe: comparing objects Pin
saud_a_k17-Jun-04 2:06
saud_a_k17-Jun-04 2:06 
GeneralProblems DWebBrowserEvents2_DocumentCompleteEvent Event Pin
lags200517-Jun-04 1:14
lags200517-Jun-04 1:14 
GeneralRe: Problems DWebBrowserEvents2_DocumentCompleteEvent Event Pin
Heath Stewart17-Jun-04 1:42
protectorHeath Stewart17-Jun-04 1:42 
GeneralRe: Problems DWebBrowserEvents2_DocumentCompleteEvent Event Pin
lags200517-Jun-04 2:06
lags200517-Jun-04 2:06 
GeneralRe: Problems DWebBrowserEvents2_DocumentCompleteEvent Event Pin
Heath Stewart17-Jun-04 2:14
protectorHeath Stewart17-Jun-04 2:14 
GeneralThreads Pin
bouli17-Jun-04 1:03
bouli17-Jun-04 1:03 
GeneralRe: Threads Pin
Corinna John17-Jun-04 1:32
Corinna John17-Jun-04 1:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.