2
shouts

ref on Reference Type?!

posted by KodefuGuruKodefuGuru 274 days, 1 hour, 32 minutes ago
Friday, June 12, 2009 9:08:12 PM GMT

I recently came across a piece of code that had almost every parameter for every method marked with the ref keyword. This keyword is primarily used to pass a value type by reference, but this one even had reference types marked with the keyword. This made me wonder, why exactly would you ever want to pass a reference type as a ref parameter?

category: Foundation | clicked: 5 | | source: www.kodefuguru.com | show counter code
tags: C#, Refactor, Refactoring

No comments yet, be the first one to post comment.

To post your comment please login or signup