進哥的布拉格

Chin Gooole's Blog

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
using System;
using System.Text;
using System.Collections.Generic;

public class Example2
{
    
static void testPar(ref String p1, String p2, StringBuilder p3)
    {
        p1 
= "hello!!";
        p2 
= "hello!!"//p2 += "hello!!";
        p3 = new StringBuilder("YoYo");//.Append("hello!!");
    }
    
static void Main(string[] args)
    {
        String s1 
= "A";
        String s2 
= "B";
        StringBuilder s3 
= new StringBuilder("C");
        testPar(
ref s1, s2, s3);
        Console.Write(
"{0}\n  {1}\n  {2}\n", s1, s2, s3);
        Console.ReadLine();

    }
}

 

posted on 2010-10-07 16:05  進哥  阅读(185)  评论(0编辑  收藏  举报