泛形方法

void Swap<T>(ref T x,ref T y)
{
    T temp;
    temp=x;x=y;y=temp;
}

posted on 2013-07-05 11:11  家乡的萝卜  阅读(136)  评论(0编辑  收藏  举报