Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
Equality and polymorphism 2 by kofifus
d1==d2
 Base==
  Derived _GetHashCode
  Base _GetHashCode
  Derived _GetHashCode
  Base _GetHashCode
   False
d1.Equals(d2) Derived.Equals(Derived)
   False

d1==d3
 Base==
  Derived _GetHashCode
  Base _GetHashCode
  Derived _Equals
  Base _Equals
   True
d1.Equals(d3) Derived.Equals(Derived)
  Derived _Equals
  Base _Equals
   True

d1==d4
 Base==
   False
d1.Equals(d4) Derived.Equals(Derived)
   False

b1==b2
 Base==
   False
b1.Equals(b2) Base.Equals(Base)
   False

b1==b3
 Base==
  Derived _Equals
  Base _Equals
   True
b1.Equals(b3) Base.Equals(Base)
  Derived _Equals
  Base _Equals
   True

b1==b4
 Base==
   False
b1.Equals(b4) Base.Equals(Base)
   False

b==d1
 Base==
   False
b.Equals(d1) Base.Equals(Base)
   False

b5==d1
 Base==
   False
b5==d4
 Base==
   True
Cached Result
Last Run: 12:31:13 am
Compile: 0.535s
Execute: 0s
Memory: 16kb
CPU: 0.281s