摘要:
值类型直接存储其值,而引用类型则保存对值的引用,就物理内存而言,值类型存贮在堆栈里,引用类型存储在托管堆上。//i and j are both of type inti=20;j=i; //在这里,内存中将在2个地方存储值20对于下面这个例子,假如newType是一个引用类型//x and y are both type of newTypex = new newType();x.value=3... 阅读全文
posted @ 2006-03-10 10:55
rongtouwenwen
阅读(208)
评论(0)
推荐(0)