© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
C
C#
•
4y ago
•
2 replies
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
?
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
syntax errors
C
C# / help
5mo ago