コード例 #1
0
        public virtual T FindRecord <T>(IDbTable <T> table, Type type, bool exactMatch = false) where T : class, IGameBase
        {
            T result;

            result = default(T);

            if (table == null || type == null)
            {
                // PrintError

                goto Cleanup;
            }

            result = table.FindRecord(type, exactMatch);

Cleanup:

            return(result);
        }
コード例 #2
0
        public virtual T FindRecord <T>(IDbTable <T> table, long uid) where T : class, IGameBase
        {
            T result;

            result = default(T);

            if (table == null)
            {
                // PrintError

                goto Cleanup;
            }

            result = table.FindRecord(uid);

Cleanup:

            return(result);
        }