public void SetValueFromString(int pRow, string pValue) { if (pValue == TableTwo.NULL_TOKEN) { entries[pRow] = null; } else { if (entries[pRow] == null) { entries[pRow] = new ValueEntry <T>(); } JsonSerializerSettings settings = new JsonSerializerSettings(); JsonSerializer s = JsonSerializer.Create(settings); JsonTextReader jr = new JsonTextReader(new StringReader(pValue)); entries[pRow].data = s.Deserialize <T>(jr); jr.Close(); } }
protected override void SetupCells() { CELL_children = EnsureCell <int[]>("childrenIDs", new int[] { }); parent = null; hasSetupCells = true; }
public void RemoveDataListener <T>(string pFieldName, ValueEntry <T> .DataChangeHandler pHandler) { table.GetValueEntry <T>(objectId, pFieldName).onDataChanged -= pHandler; }