Bir ifade sorgusu oluştururken bir ifade için kısa bir el için çalışıyorum ve testin boş olması durumunda erişimci bir hataya neden oluyor. Ben arıyorumKısa el Başka ifade olmadan
test != null ? test.Contains("mystring") : NO_VLAUE
:
test != null ? test.Contains("mystring")
otherwise ignore.
ben is null
için ??
kullanabilirsiniz ancak ters olduğunu biliyorum.
Şimdiden teşekkürler.
Boş dize belki? –