public class ShouldExplicitCall
{
    public struct Point
    {
        public int a;
        public Point()
        {
            a=1;
        }
    }
    public Point should = new Point();
    public Point not;
    public void Out()
    {
        Console.WriteLine(not.a);//0
        Console.WriteLine(should.a);//1
    }
}

 

相关文章:

  • 2021-07-23
  • 2021-09-30
  • 2021-08-25
  • 2021-09-13
  • 2021-09-09
  • 2022-01-01
  • 2022-12-23
  • 2021-11-17
猜你喜欢
  • 2021-08-20
  • 2021-11-14
  • 2022-02-17
  • 2021-10-14
  • 2021-06-15
  • 2021-08-17
相关资源
相似解决方案