why --> obj.Equals() | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

why --> obj.Equals()

Trying to compare if two obj are same type. No output. I'm missing the true use/meaning of <object.Equals()> ? https://code.sololearn.com/cCPUK0u9GiI5/?ref=app

2nd Nov 2020, 4:04 PM
Kiwwi#
Kiwwi# - avatar
1 Answer
+ 2
You could use the is operator or Another possibility is to use the as I changed your code https://code.sololearn.com/cZo3jGEUSUsT/?ref=app
2nd Nov 2020, 4:27 PM
hossein B
hossein B - avatar