??空合并运算符 - >什么是聚结是什么意思? [英] ?? Null Coalescing Operator --> What does coalescing mean?

查看:157
本文介绍了??空合并运算符 - >什么是聚结是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很想撒谎说英语是我的第二语言,但事实是,我只是不知道聚结的意思。我知道 ?? '不'在C#中,但该名称没有道理给我。

我抬头一看这个词,我知道它是加入的代名词。 空连接运算符依然是没有意义的。

有人能告诉我吗?


解决方案

  

我很想撒谎说英语是我的第二语言......但事实是,我只是不知道聚结的意思。我知道什么? 确实在C#中,但该名称没有道理给我。


  
  

我抬头一看这个词,我知道它是加入。同义词


我说的合并将是一个更准确的描述,形成不同元素的一件事。在合并的 ?? 运营商是因为单个值总是从两个值中的一个解决。第一个非空值是结果。

I'm tempted to lie and say that English is my second language, but the truth is that I just have no idea what 'Coalescing' means. I know what ?? 'does' in C#, but the name doesn't make sense to me.

I looked up the word and I understand it to be a synonym for 'join'. 'Null Join Operator' still doesn't make sense.

Can someone enlighten me?

解决方案

I'm tempted to lie and say that English is my second language...but the truth is that I just have no idea what 'Coalescing' means. I know what ?? 'does' in C#, but the name doesn't make sense to me.

I looked up the word and I understand it to be a synonym for 'join'.

I'd say a more accurate description of "coalesce" would be "to form one thing from different elements". The "coalescing" of the ?? operator happens because a single value is always resolved from one of the two values. The first non-null value is the result.

这篇关于??空合并运算符 - >什么是聚结是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆