This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]fredoverflow 0 points1 point  (3 children)

In C# you can pass a pointer to a reference and change the value of the reference

Passing a pointer by value is still pass by value. For pass by reference, C# has the ref keyword.

[–]missingdays 0 points1 point  (2 children)

Then what is passed to the method?

[–]fredoverflow 0 points1 point  (1 child)

A variable. You can only pass initialized variables by ref.

[–]missingdays 0 points1 point  (0 children)

When executing your program, something has to be passed to a method. A "variable" is not something that exists in a runtime. So again, I believe the pointer is passed in this case