public ActionDBRow GetRow(string rowString) { ActionDBRow ret = null; try { ret = Rows[(int)System.Enum.Parse(typeof(rowIds), rowString)]; } catch (System.ArgumentException) { Debug.LogError(rowString + " is not a member of the rowIds enumeration."); } return(ret); }
public ActionDBRow GetRow(rowIds rowID) { ActionDBRow ret = null; try { ret = Rows[(int)rowID]; } catch (System.Collections.Generic.KeyNotFoundException ex) { Debug.LogError(rowID + " not found: " + ex.Message); } return(ret); }