Link to home
Start Free TrialLog in
Avatar of rvcw
rvcw

asked on

Basic C# question

Hi

Im trying to learn c sharp but am confused about a particular thing I have seen..

My understanding is

a = a+b;

is the same as
a += b;

However, while reading a tutorial on windows iot, they have this statement on a method that doesn't return anything;
 timer.Tick += Timer_Tick;

Full code is here;
https://ms-iot.github.io/content/en-US/win10/samples/Blinky.htm

How does this work and what exactly is it doing? I researched this but struggled to find any answers. Any help is appreciated.
SOLUTION
Avatar of Najam Uddin
Najam Uddin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rvcw
rvcw

ASKER

Thanks for the comments everyone.. that definitely cleared it up for me.. Much appreciated!