示例#1
0
        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);
        }
示例#2
0
        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);
        }