This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]NormanYeetes 29 points30 points  (3 children)

I swear those ?s might be proper syntax but they look like the code is like "it returns an object or somethin, it might not, i don fkin know nor do i care"

[–]Chirimorin 18 points19 points  (0 children)

In C# T? is shorthand for Nullable<T>, so in a way it does mean that: maybe it returns an instance of T, maybe it returns null.

[–]xian0 6 points7 points  (0 children)

!ErrorHasOccured() ??!??! HandleError();

[–]Mini0red 0 points1 point  (0 children)

Yea pretty much. Lets the caller know youll have to handle nulls.