Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是什么意思 :
return i ? null : "red";
? 是什么意思 ”?” 和 ”:”
这是一个三元运算。
它的语法是:
condition ? operation-if-true : operation-if-false
例如
return myVariable >5 ? 'a' : 'b';
如果myVariable大于 5,则返回“a”,否则返回“b”。
myVariable
I want to access the Structures returned by a function in a List. I am not able to do it as it is causing Compiler errors.
public class StructTypeA { public string sString1; public string