/// <summary> /// Fills row of data table. /// </summary> /// <param name="characteristics"> /// Row of characteristics table. /// </param> /// <param name="characteristicsNames"> /// Characteristics names array. /// </param> /// <param name="id"> /// Sequence id. /// </param> /// <returns> /// The <see cref="DataObject"/>. /// </returns> private static DataObject FormDataObject(List<double> characteristics, string[] characteristicsNames, long id) { var result = new DataObject { Id = id }; for (int i = 0; i < characteristicsNames.Length; i++) { result.Add(characteristicsNames[i], characteristics[i]); } return result; }
/// <summary> /// The clone. /// </summary> /// <returns> /// The <see cref="IBaseObject"/>. /// </returns> public IBaseObject Clone() { var clone = new DataObject(); foreach (var key in Vault.Keys) { clone.Add(key.ToString(), Get(key.ToString())); } clone.Id = Id; return clone; }
/// <summary> /// The add. /// </summary> /// <param name="object1"> /// The object 1. /// </param> public void Add(DataObject object1) { vault.Add(object1.Id, object1); }