1
A
답변
5
물음표는 컨텍스트에 따라 C#에서 다른 의미를 갖습니다.
널 조건 연산자 (MSDN, What does the question mark in member access mean in C#?)
Console.Write(myObject?.Items?[0].ToString());
(MSDN, Benefits of using the conditional ?: (ternary) operator)
return isTrue ? "Valid" : "Lie";
널 합체 조작 조건 연산자/삼항 연산자 (MSDN,)
return myObject ?? yourObject;
nullable 형식 (MSDN, What is the purpose of a question mark after a type (for example: int? myVariable)?)
int? universalAnswer = 42;
@DavidG 종류의 ...에 대한 검색 답이없는 밝혀졌다 http://stackoverflow.com/questions/ 43074622/question-mark-after-session-variable-reference-what-does-that-mean-noredirect = 1. 4 중 중복으로 닫는 것이 올바른 해결책인지 확실하지 않습니다. 검색 엔진이 어떻게 처리하는지 몇 일 후에 확인할 수 있습니다. –
@DavidG 좋은 점 - 자아 응답 인터페이스에 CW 옵션이 있는지 여부를 알지 못했거나 CW로 변경되었습니다. –
오래전에는 커뮤니티 위키로 질문/답변을 표시하는 옵션이있었습니다. 'NullReferenceException' 주제와 같습니다. 이 옵션을 지금 찾을 수 없습니다 .. –