c# nullable arguments. Assign to null er use question mark? [duplicate]


Ask Sejsbo

This question already has an answer here:

Hey i can't seem to find the answer to this question answered in a way that makes complete sense to me.

when declaring nullable arguments in c#, what is the difference between declaring a argument with a question mark like this:

public method(int? variable):

and with an assignment like this:

public method(int variable = null):

Continue reading...