What does plus equals(+=) operator means here?


This question already has answers here
:+= operator with Events (6 answers)Closed 7 years ago.

I was working out sample code of Windows phone and often I see statements with += operator.

I know about add assignment operator which does the below operation

+= means a = a + b;  // used for both adding number and string concatenation

But this is new to me

phNumChoseTask = new PhoneNumberChooserTask();
phNumChoseTask.Completed += new EventHandler<PhoneNumberResult>(phoneNumberChooserTask_Completed);

Here how does += works?

Leave a Comment