Compilation error. Using properties with struct
问题 Please explain the following error on struct constructor. If i change struct to class the erros are gone. public struct DealImportRequest { public DealRequestBase DealReq { get; set; } public int ImportRetryCounter { get; set; } public DealImportRequest(DealRequestBase drb) { DealReq = drb; ImportRetryCounter = 0; } } error CS0188: The 'this' object cannot be used before all of its fields are assigned to error CS0843: Backing field for automatically implemented property 'DealImportRequest