public MutableIllBehavedCopyMethods WithThirdButThirdDifferent(ComplexMutable <int, int, int> third) { var differentThird = new ComplexMutable <int, int, int> { First = third.First + 1, Second = third.Second, Third = third.Third, }; return(new MutableIllBehavedCopyMethods(this.First, this.Second, differentThird)); }
public MutableIllBehavedCopyMethods WithThirdButFirstDefault(ComplexMutable <int, int, int> third) { return(new MutableIllBehavedCopyMethods(default(int), this.Second, third)); }
public MutableWellBehavedCopyMethods WithThird(ComplexMutable <int, int, int> third) { return(new MutableWellBehavedCopyMethods(this.First, this.Second, third)); }
public MutableIllBehavedCopyMethods(int first, string second, ComplexMutable <int, int, int> third) { this.First = first; this.Second = second; this.Third = third; }
public ImmutableIllBehavedCopyMethods(int first, string second, ComplexMutable <int, int, int> third) { First = first; Second = second; Third = third; }