+ 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 Respuesta
+ 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