无论数据类型是数值类型还是引用类型,信息传递的一方都可能出现问题。
Whether a data type is a value type or a reference type, the communicating parties could also pose problems.
其他人则提到,“价值”为引用类型传递指针。
As others have mentioned, the "value" that is passed for a reference type is a pointer.
引用类型:一个对象传递到多个类?。
当通过引用传递时,该类型的指针的指针在堆栈上传递。
When passed by reference, a pointer to a pointer to the type is passed on the stack.
重要事项对于引用类型,按值传递参数会得到对所传递对象的引用的副本。
For reference types, if you pass a parameter by value, it results in a copy of the reference to an object being passed.
当你引用类型作为参数传递时,你不能改变你在调用代码中传递的指针,但表示引用类型的成员可以改变被调用的代码。
When you pass a reference type as a parameter, you can't change the pointer that you passed in your calling code, but the members of the indicated reference type can be changed in the called code.
当你引用类型作为参数传递时,你不能改变你在调用代码中传递的指针,但表示引用类型的成员可以改变被调用的代码。
When you pass a reference type as a parameter, you can't change the pointer that you passed in your calling code, but the members of the indicated reference type can be changed in the called code.
应用推荐