Senin, 14 Juni 2010
Ref Keyword for Reference Types
The Ref keyword is well known. It indicates that you are passing a reference, not a value, to a method. That means that if the method modifies the value, the changes will be apparent to the calling method as well. Where I see a lot of confusion, however, is what happens when dealing with reference types. It is common to say that methods pass objects by reference, but that's not entirely
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar