Wednesday May 4th

Tuesday May 3rd

Monday May 2nd

Out, Out, Damn Ref

The difference between the out and ref keywords in C# .. and other questions this brings up.


There is one other important difference that wasn't mentioned. If you reverse the order in which the two methods are called, the code will not compile. This is because the out keyword allows you to pass a variable that have not already been assigned to. A ref argument, on the other hand, requires that the variable be initialized ahead of time.

Commenting on Stories is limited for now and will open up to those recommended by the community. Learn how
Loading DotNetKicks...
brought to you by the Kicks Network