gpt4 book ai didi

c# - |= 运算符是做什么的?

转载 作者:行者123 更新时间:2023-11-30 19:06:14 27 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
what does |= (single pipe equal) and &=(single ampersand equal) mean in c# (csharp)

这里是它被使用的上下文:

long dirtyFlag = 0x0000;

if (erd.SupervisorCompType != orgErd.SupervisorCompType) // change has been made?
{
dirtyFlag |= 0x0001;
// etc...
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com