public float GetValue(int index) { if (index < datas.Count) { Dictionary<string, object> data = datas[index]; float value = (float)data["value"]; return value; } return -1f; }