The real WTF is that large block of unreadable text. Use some line breaks, please!
cvladimir
@cvladimir
Best posts made by cvladimir
Latest posts made by cvladimir
-
RE: AIM WTF
-
RE: A flamewar on java dev forums WTF
Wow, fascinating. All that wasted bandwidth just for something obviously stupid; I can see how bothhsides have a point, something that should have cleared somewhere in the first page. Sigh.
Anyway, I think an better way to describe how C# works is that when using value objects (such as bool, int, and other primitives as well as user defined types using the struct keyword) well, they are passed by value. When you use reference objects (such as Form, Button, SqlConnection, etc as well as user defined types using the class keyword), you are passing them by reference.
The ref keyword is used for both value and class objects and has basically the same meaning. Passing a value type by reference, you allow the method to change the value of your object. Passing a reference type by ref, you allow the method to do something in the lines of void foo(ref ClassType ct) { ct = new ClassType(..); }Note that strings are immutable reference types.
-
RE: Snipe Hunting. Er, Find the WTF.
The real wtf is the absence of a // wtf ! comment along the MakeParameter line.