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