Example #1
0
        protected T FindRow(params int[] keys)
        {
            if (this.keyToRow == null)
            {
                return(null);
            }

            int key = CremaUtility.GenerateHashCode(keys);

            if (this.keyToRow.ContainsKey(key) == false)
            {
                return(null);
            }
            return(this.keyToRow[key]);
        }
Example #2
0
        protected T FindRow(int key1, int key2, int key3, int key4)
        {
            if (this.keyToRow == null)
            {
                return(null);
            }

            int key = CremaUtility.GenerateHashCode(key1, key2, key3, key4);

            if (this.keyToRow.ContainsKey(key) == false)
            {
                return(null);
            }
            return(this.keyToRow[key]);
        }
Example #3
0
 protected void SetKey(int key1, int key2, int key3, int key4)
 {
     this.key = CremaUtility.GenerateHashCode(key1, key2, key3, key4);
 }
Example #4
0
 protected void SetKey(params int[] keys)
 {
     this.key = CremaUtility.GenerateHashCode(keys);
 }
Example #5
0
 protected void SetKey(int key1)
 {
     this.key = CremaUtility.GenerateHashCode(key1);
 }