469,352 Members | 1,661 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,352 developers. It's quick & easy.

compare two structs via ==

I wish to compare two structs via == but it does not compile. I can
overload and create my own == but am I missing something that c#
already has implemented?

~titan

May 30 '07
50 19038
"Peter Duniho" <Np*********@nnowslpianmk.comwrote in message
news:op***************@petes-computer.local...
On Thu, 07 Jun 2007 13:45:56 -0700, Mark Wilden <mw*****@communitymtm.com>
wrote:
>Without an operator== overload that would explicitly check equality on the
string arrays, the class instances would be "not equal" even though the
members are "equal".
Right - in -that- part of the discussion, I (think I) was referring to the
(mythical) memberwise comparison that C# doesn't provide, but which I
thought it should. Perfectly clear, n'est-ce pas? :)

///ark
Jun 7 '07 #51

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Simon Elliott | last post: by
5 posts views Thread by ma740988 | last post: by
5 posts views Thread by Steve Edwards | last post: by
12 posts views Thread by barcaroller | last post: by
8 posts views Thread by Joe Van Dyk | last post: by
61 posts views Thread by Marty | last post: by
2 posts views Thread by Zytan | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.