How to 'do' ByVal in C#
Posted
by Jouke van der Maas
on Stack Overflow
See other posts from Stack Overflow
or by Jouke van der Maas
Published on 2010-06-14T20:05:39Z
Indexed on
2010/06/14
20:12 UTC
Read the original article
Hit count: 332
As I understand it, C# passes parameters into methods by reference. In vb.net, you can specify this with ByVal and ByRef. The default is ByVal.
Is this for compatibility with vb6, or is it just random? Also, how can I specify what to use in C#? I kind of like the idea of passing parameters by value.
© Stack Overflow or respective owner