What is "??=" classified as, because it does not obey "Operator" syntax highlighting.

  • Thread starter Thread starter JaedenRuiner
  • Start date Start date
J

JaedenRuiner

Guest
Title says it all.

Using VS2019, it suggested using the:

item ??= new MyItem();
instead of
item = item ?? new MyItem();
But as soon as I accepted that change the "??=" operator was not interpreted as an "operator" and therefore has the exact same syntax highlight color as "item" which is a trifle annoying.
So, if it "isn't" an operator, what is it?
If it "is" an operator, that's a bug!

Thanks
Jaeden "Sifo Dyas" al'Raec Ruiner


"Never Trust a computer. Your brain is smarter than any micro-chip."
PS - Don't mark answers on other people's questions. There are such things as Vacations and Holidays which may reduce timely activity, and until the person asking the question can test your answer, it is not correct just because you think it is. Marking it correct for them often stops other people from even reading the question and possibly providing the real "correct" answer.

Continue reading...
 
Back
Top