we can mix variables passed by value and by reference easily within the use clause, and they will be handled without any problem.
我们可以将按值和按引用传递的变量轻松地混合到use子句中,并且可以顺利地处理这些变量。
method arguments passed by value are marshaled to unmanaged code as values on the stack;
通过值传递的方法参数被作为堆栈上的值封送到非托管代码;
reference types can be passed by value or by reference.
参考型别可以传值和传址方式进行传递。
this is also make sense since the object was passed by value and its data will not be needed outside the function scope.
这似乎也很合理,因为我们是按值进行的传递,在超出函数的作用范围后,我们不需要该变量。
if your struct is immutable then all automatic copies resulting from being passed by value will be the same.
如果你的结构是不变的,然后从价值传递产生的所有自动副本将是相同的。