Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7943131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:10:42+00:00 2026-06-04T00:10:42+00:00

Why do the following documents talk about different approaches when implementing Equals method? [MSDN]

  • 0

Why do the following documents talk about different approaches when implementing Equals method?

  • [MSDN] Guidelines for Overriding Equals() and Operator == (C# Programming Guide)
  • [MSDN] Implementing the Equals Method

The second document (which is more recent) does not explicitly implement the strongly-typed version of Equals (like public bool Equals(MySuperTrooperClass o)).

What’s underlying reason to drop the strongly-typed method from one of the guidelines and which approach should I use in my production code?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T00:10:44+00:00Added an answer on June 4, 2026 at 12:10 am

    There is no benefit to dropping the strongly-typed version. Quite the contrary, as the first page itself mentions

    It is also recommended that in addition to implementing Equals
    (object), any class also implement Equals (type) for their own type,
    to enhance performance.

    This is doubly true for value types.

    I assume that the second page does not concern itself with this at all because only the weakly typed version is defined on System.Object. The strongly typed version typically goes hand in hand with implementing IEquatable<T>, the documentation for which mentions the interaction between Equals(T) and Equals(object).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How to print multiply flowdocumets in a batch? Following code should print different documents
The following w3c documents mentions rowgroup http://www.w3.org/TR/html401/struct/tables.html#h-11.2.6 http://www.w3.org/TR/html401/struct/tables.html#rowgroups <!ENTITY % Scope (row|col|rowgroup|colgroup)> Is there
I'm trying to connect to google documents (following Marco Cantu's excellent REST example) but
I have text documents like the following which contain single and multiple variables: title::
Good day, If I have for example the documents which have the following fields
I am trying to filter stop-words from the following documents using package tm .
I have a collection of the following sort of documents (taken from Mongo DB
If I have the following 3 documents. How can I select the documents that
I'm following IBM's tutorial on CouchDB and ran into a problem saving edited documents.
Suppose i have the following tables : projects( project_id , project_name ) documents( document_id,document_name

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.