Question #15397

when testing condition of a string variable there is a variable name.Equals(string) and the "=" operator. What is the difference?

Expert's answer

name.Equals(string) is an operator that checks the equality of name and
string.
Moreover, "=" is assignment operator.
LATEST TUTORIALS
APPROVED BY CLIENTS