It is clear that there is a type Object. And this type includes such methods.

public extern Type GetType(); public virtual bool Equals (object obj); public static bool Equals (object objA, object objB); public static bool ReferenceEquals (object objA, object objB); public virtual int GetHashCode(); public virtual string ToString(); protected override void Finalize(); protected extern object MemberwiseClone(); 

I would like to understand the difference and scope.

  public virtual bool Equals (object obj); public static bool Equals (object objA, object objB); public static bool ReferenceEquals (object objA, object objB); 

It seems clear, but some kind of mess is still in my head, tell me on the fingers how to understand it.

  • one
    why not just source code to look? - tym32167
  • @ tym32167 thanks, it looks like public static bool Equals is the same as == between two objects, did I understand that? Does this static bool ReferenceEquals check for equal (to each other) references to objects A and B? - Vladimr Vladimirovoch
  • one
    not really, it first castes them to object , and then already == - tym32167
  • Yes, I understand that this is what we bring to Object, and then we compare these objects. As among themselves, and links to these objects. - Vladimr Vladimirovoch

0