具有NULL值的二进制连接运算符行为 [英] Binary concatenation operator behaviour with NULL values
问题描述
只是想知道这是否是使用(+)二元连接运算符时的明显行为。
Just wondering if this is the obvious behaviour when using the (+) binary concatenation operator.
推荐答案
只是想知道这是不是使用(+)二元连接运算符时的明显行为。
Just wondering if this is the obvious behaviour when using the (+) binary concatenation operator.
这是否适用?
String.Concat方法(字符串,字符串)
https://msdn.microsoft.com/en-us/library/a6d350wd(v = vs.110 ).aspx
"连接两个指定的String实例。"
" 注意
"您还可以使用语言的字符串连接运算符,
,例如C#中的+ ,或&和Visual Basic中的+),以连接字符串。"
"使用空字符串代替任何空参数。"
- Wayne
Does this apply?
String.Concat Method (String, String)
https://msdn.microsoft.com/en-us/library/a6d350wd(v=vs.110).aspx
"Concatenates two specified instances of String."
"Note
"You can also use your language's string concatenation operator,
such as + in C#, or & and + in Visual Basic), to concatenate strings."
"An Empty string is used in place of any null argument."
- Wayne
这篇关于具有NULL值的二进制连接运算符行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!