第一个问题做不到
第二个只需要new就行了

解决方案 »

  1.   

    If you are intended to get the address of the variable,you may have to resort to unsafe code://csc /unsafe GetAddress.cs
    using System;class GetAddress{
      unsafe static void Main(){
        int i = 10;
        Console.WriteLine("The address of {0} is:{1}",i,((int)&i).ToString("X"));
      }
    }
      

  2.   

    用unsafe{
    a.ToString()
    }不行吗?
      

  3.   

    unsafe
    {
    这里面可以使用*i,&i
    }