What is this operator: &=

前端 未结 6 867
暖寄归人
暖寄归人 2021-01-21 16:16

Can someone explain what is the operator &= for?

I searched, but I got only results with & or =.

6条回答
  •  再見小時候
    2021-01-21 16:38

    If i remember correctly it biwise operation...for example it can be used with [Flags]Enum. It check if your flag variable has specific value.

提交回复
热议问题