c#中的参数传递
一. 基本型别(primitive types)
对于基本型别,情况看起来要单纯一些.假设我们有如下的一段程序:
//example 1
using system;
class mainclass{
public static void main(){
char c = 'a ';
console.writeline("1#: c= " + c);
prmtvfun(c);
console.writeline("2#: c = " + c);
}
一. 基本型别(primitive types)
对于基本型别,情况看起来要单纯一些.假设我们有如下的一段程序:
//example 1
using system;
class mainclass{
public static void main(){
char c = 'a ';
console.writeline("1#: c= " + c);
prmtvfun(c);
console.writeline("2#: c = " + c);
}