79165829

Date: 2024-11-07 09:51:41
Score: 1
Natty:
Report link

Henk Holterman is correct.

Additionally,you can get rid of the need to set an initial value and the warning by using the required keyword as in the following code:

 [Parameter, EditorRequired] 
 public required Trail Trail { get; set; }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Gary Varga