public HeronValue GetColumn(HeronValue column) { int nCol = -1; if (column is StringValue) { nCol = layout.GetFieldIndex((column as StringValue).GetValue()); } else if (column is IntValue) { nCol = (column as IntValue).ToInt(); } else { throw new Exception("Can only retrieve columns by name (String) or index (Int)"); } return(new ListValue(GetValues(nCol), layout.GetTypes()[nCol])); }
public int GetFieldIndex(string s) { return(layout.GetFieldIndex(s)); }