Click here to Skip to main content
15,920,005 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# and table problem? Pin
Stefan Troschuetz29-Jan-07 22:26
Stefan Troschuetz29-Jan-07 22:26 
AnswerRe: C# and table problem? Pin
Christian Graus29-Jan-07 22:16
protectorChristian Graus29-Jan-07 22:16 
QuestionRe: C# and table problem? Pin
TuanNH8529-Jan-07 22:23
TuanNH8529-Jan-07 22:23 
AnswerRe: C# and table problem? Pin
Christian Graus29-Jan-07 22:55
protectorChristian Graus29-Jan-07 22:55 
QuestionRe: C# and table problem? Pin
TuanNH8529-Jan-07 23:03
TuanNH8529-Jan-07 23:03 
AnswerRe: C# and table problem? Pin
Christian Graus29-Jan-07 23:14
protectorChristian Graus29-Jan-07 23:14 
QuestionHow to use "Reflection "to compare classes? Pin
Luka Grabarevic29-Jan-07 21:28
Luka Grabarevic29-Jan-07 21:28 
AnswerRe: How to use "Reflection "to compare classes? Pin
Colin Angus Mackay29-Jan-07 21:41
Colin Angus Mackay29-Jan-07 21:41 
pdluke wrote:
i'd like to compare the original instance of the class and the one i've deserialized to see if the two instance are the same.


Be careful. The two objects will not be the same. What you mean is that you are testing to see if they are equal.

You can do this without reflection. You can override the Equals method:

public override bool Equals(object obj)
{
    bool isEqual = base.Equals(obj);
    if (!isEqual)
        return false;
 
    // Do more stuff to determine equality - updating isEqual
 
    return isEqual;
}


Only you can determine what constitutes equality.


GeneralRe: How to use "Reflection "to compare classes? Pin
Russell Jones29-Jan-07 22:33
Russell Jones29-Jan-07 22:33 
AnswerRe: How to use "Reflection "to compare classes? Pin
Dan Neely30-Jan-07 2:50
Dan Neely30-Jan-07 2:50 
QuestionZedGraph: DateTime Axis-scale problem and language settings Pin
Rene Tanner29-Jan-07 21:00
Rene Tanner29-Jan-07 21:00 
Questionhow to use time delay? Pin
Petra29-Jan-07 20:08
Petra29-Jan-07 20:08 
AnswerRe: how to use time delay? Pin
TuanNH8529-Jan-07 20:23
TuanNH8529-Jan-07 20:23 
AnswerRe: how to use time delay? Pin
blackjack215029-Jan-07 20:23
blackjack215029-Jan-07 20:23 
AnswerRe: how to use time delay? Pin
Christian Graus29-Jan-07 21:56
protectorChristian Graus29-Jan-07 21:56 
AnswerRe: how to use time delay? Pin
Luc Pattyn30-Jan-07 2:18
sitebuilderLuc Pattyn30-Jan-07 2:18 
QuestionHTMLElement Object Problem Pin
TuanNH8529-Jan-07 19:53
TuanNH8529-Jan-07 19:53 
GeneralRe: HTMLElement Object Problem Pin
andre_swnpl29-Jan-07 20:19
andre_swnpl29-Jan-07 20:19 
QuestionOMG? Pin
TuanNH8529-Jan-07 20:37
TuanNH8529-Jan-07 20:37 
GeneralRe: OMG? Pin
andre_swnpl29-Jan-07 20:51
andre_swnpl29-Jan-07 20:51 
GeneralRe: OMG? Pin
bobsugar22229-Jan-07 21:34
bobsugar22229-Jan-07 21:34 
Questionlooping windows forms datagrid in c# Pin
Sivaprasad C29-Jan-07 19:36
Sivaprasad C29-Jan-07 19:36 
Questionreturning more than single value from a single function Pin
sukaan29-Jan-07 19:01
sukaan29-Jan-07 19:01 
AnswerRe: returning more than single value from a single function Pin
Sylvester george29-Jan-07 20:05
Sylvester george29-Jan-07 20:05 
AnswerRe: returning more than single value from a single function Pin
andre_swnpl29-Jan-07 20:05
andre_swnpl29-Jan-07 20:05 

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.