public override void CopyTo(LexiaDataObject target) { base.CopyTo(target); LexiaParameterData data = target as LexiaParameterData; data.LexiaParametersSetId = LexiaParametersSetId; data.Name = Name; data.Type = Type; data.Units = Units; }
public LexiaTrace Clone() { LexiaTrace result = new LexiaTrace(); CopyTo(result); foreach (LexiaParametersSet set in ParameterSets) { LexiaParametersSet resultSet = new LexiaParametersSet(); set.CopyTo(resultSet); foreach (LexiaParameterData parameter in set.Parameters) { LexiaParameterData resultParameter = new LexiaParameterData(); parameter.CopyTo(resultParameter); foreach (string s in parameter.Values) { resultParameter.Values.Add(s); } resultSet.Parameters.Add(resultParameter); } result.ParameterSets.Add(resultSet); } return(result); }