You can change it, but the change will not return to the caller.
If it is ValueType -> copy object is sent
If this value is RefernceType → Copy object references, will be sent by value. Thus, the properties of the object can be changed, but not the links themselves - the calling object will still not see the changes.
If sent ref → Link may be changed.
In C ++, you can use const to prevent change, but C # does not. This is only for the programmer to mistakenly try to change it - depending on where the const used.
Aliostad
source share