Arrays of ValueTypes don't like object.Equals(geekswithblogs.net)

submitted by rcashrcash(4149) 8 months, 9 days ago

Why doesn't byte[] work with Equals? The default implementation of Equals supports reference equality for reference types, and bitwise equality for value types. Reference equality means the object references that are compared refer to the same object. Bitwise equality means the objects that are compared have the same binary representation.

1 comment |category: |Views: 16

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by vijaystvijayst(1311) 8 months, 8 days ago 0

Comparing equality of two arrays is always a bit messy.

Reply

information Login or create an account to comment on this story