Unlike C ++, C # does not allow overriding the assignment operator.
For reference types, the entry x = ywill set xto reference the same object (or null) that it does y.
For value types, the record x = ywill copy the fields in the value yinto the value x.
source
share