Answer to Question #15397 in C# for james neece

Question #15397
when testing condition of a string variable there is a variable name.Equals(string) and the "=" operator. What is the difference?
1
Expert's answer
2012-09-27T11:17:35-0400
name.Equals(string) is an operator that checks the equality of name and
string.
Moreover, "=" is assignment operator.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS