Monday, 17 November 2014

Difference Between Equality Operator ( ==) and Equals() Method in C#

Difference Between Equality Operator ( ==) and Equals() Method in C#



The Equality Operator ( ==)                                                        Equals() method

Comparison operator                                                                      Compares the contents of a string
Compares the reference identity                                                     Compares only contents

No comments:

Post a Comment