Parameters in the method.
If it is a [value type] parameter, modifying the value of the parameter in the method does not affect the value of the real parameter. (Code 1)
If it is a [String] parameter, modifying the value of the parameter in the method does not affect the value of the real parameter. (Code 1)
If the parameter is of the [Reference Type], modifying the form parameter itself (instantiation and value assignment) in the method does not affect the value of the real parameter. (Code 1)
However, modifying the attribute value of a [Reference Type] parameter in the method body (without modifying the parameter) affects the attribute value of a real parameter. (Code 2)
Num = str = Change (num, num = str = obj. num = obj. str = num = str = A obj = obj. num = obj. str = Console. writeLine (. format (B B = Console. writeLine (. format (} code 1 num = str =. num =. str =. num =. str = a = A a = Console. writeLine (. format (. num =. str = Console. writeLine (. format (B B = Console. writeLine (. format (Console. writeLine (. format (A a2 = a2.num = a2.str = Console. writeLine (. format (} Code 2