Why Must I Initialize All Fields in my C# struct with a Non-Default Constructor?

前端 未结 6 691
自闭症患者
自闭症患者 2020-12-08 23:27

I would like to try this code:

public struct Direction
{
   private int _azimuth;

   public int Azimuth
   {
     get { return _azimuth; }
     set { _azimu         


        
6条回答
提交回复
热议问题