Tracks
/
C#
C#
/
Syllabus
/
Compound Assignment
Co

Compound Assignment in C#

0 exercises

About Compound Assignment

Many operators can also be used as compound assignments, which are a shorthand notation where x = op y can be written as x op= y:

var features = PhoneFeatures.Call;
features |= PhoneFeatures.Text;
features &= ~PhoneFeatures.Call;
Edit via GitHub The link opens in a new window or tab