C#中的参数传递[1]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 st0ne82 的 blog

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);

}

本文关键:C#中的参数传递
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top