public NoSettersDefaultAndOneToOneConstructor(string id,
                                               int number,
                                               List <double> values,
                                               SubClass subClass)
 {
     Id       = id;
     Number   = number;
     Values   = values;
     SubClass = subClass;
 }
 public PrivateSettersOneToOneConstructor(string id,
                                          int number,
                                          List <double> values,
                                          SubClass subClass)
 {
     Id       = id;
     Number   = number;
     Values   = values;
     SubClass = subClass;
 }
 private NoSettersPrivateOneToOneConstructorWithAttribute(string id,
                                                          int number,
                                                          List <double> values,
                                                          SubClass subClass)
 {
     Id       = id;
     Number   = number;
     Values   = values;
     SubClass = subClass;
 }
 public NoSettersOneToOneConstructorAndPartialConstructor(
     int number,
     List <double> values,
     SubClass subClass)
 {
     Id       = Guid.NewGuid().ToString();
     Number   = number;
     Values   = values;
     SubClass = subClass;
 }
 public static PrivateSettersPrivateOneToOneConstructor Create(string id,
                                                               int number,
                                                               List <double> values,
                                                               SubClass subClass)
 {
     return(new PrivateSettersPrivateOneToOneConstructor
     {
         Id = id,
         Number = number,
         Values = values,
         SubClass = subClass
     });
 }
 public void SetSubClass(SubClass subClass) => SubClass = subClass;