public ActorDBRow GetRow(string rowString) { ActorDBRow 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 ActorDBRow GetRow(rowIds rowID) { ActorDBRow ret = null; try { ret = Rows[(int)rowID]; } catch (System.Collections.Generic.KeyNotFoundException ex) { Debug.LogError(rowID + " not found: " + ex.Message); } return(ret); }