public void Add(DataPair dataPair)
        {
            if (_dataPairs.Find(name => name.Name == dataPair.Name) != null)
            {
                throw new ArgumentException("Data pair with same name already exists.", nameof(dataPair));
            }

            _dataPairs.Add(dataPair);
        }
 public void Remove(DataPair dataPair)
 {
     _dataPairs.Remove(dataPair);
 }