Exemple #1
0
 public ParentWithConstructor(ChildWithProperty1 child) => Child = child;
 public ParentWithConstructor(ChildWithProperty1 child)
 {
     Child = child ?? throw new ArgumentNullException(nameof(child));
 }