|
-
Feb 23rd, 2009, 06:21 AM
#2
Re: [2.0] Implement ==?
.Equals is reference equality.
== is value equality
Because they mean different things, you can't or rather shouldn't use == to call Equals() on the objects themselves, but on values of properties in the objects.
I see that in the ==, you're calling Equals, which then does a==b, which in turn will call Equals. That's why you're getting the stack overflow.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|