public IntPrefs(IntPrefsTO source) : base(source.name) { this.values = new List <IntCondition>(); foreach (var item in source.values) { this.values.Add(new IntCondition(item)); } }
public IntPrefsTO GetTO() { var result = new IntPrefsTO(); result.name = this.name; result.values = new List<IntConditionTO>(); foreach (var item in this.values) result.values.Add(item.GetTO()); return result; }