gpt4 book ai didi

c# - 什么是 C# 中的 "?? "运算符?

转载 作者:IT王子 更新时间:2023-10-29 04:47:23 25 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
What is the “??” operator for?

“??”是什么意思?运算符在表达式中执行 ?

public NameValueCollection Metadata
{
get { return metadata ?? (metadata = new NameValueCollection()); }
}

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