C
C#3y ago
Triufelis

? syntax [Answered]

public void Add(T newItem) { var insertAt = _Inner.Count == 0 ? 0 : new Random().Next(0,_Inner.Count+1); _Inner.Insert(insertAt, newItem); } What does the ? mean in this code?
2 Replies
Triufelis
TriufelisOP3y ago
thank you. Couldn't find any info on this. Because once you type C# ? syntax or sth like that. it doesn't really show any results. thanks.
Accord
Accord3y ago
✅ This post has been marked as answered!
Want results from more Discord servers?
Add your server