Exemplo n.º 1
0
 public Delegate GetFromTableReaderCache(Type tableType, IList<string> columns)
 {
     var signature = new TableReaderSignature(tableType, columns);
     Delegate tableReader;
     tableReaders.TryGetValue(signature, out tableReader);
     return tableReader;
 }
Exemplo n.º 2
0
        public Delegate GetFromTableReaderCache(Type tableType, IList <string> columns)
        {
            var      signature = new TableReaderSignature(tableType, columns);
            Delegate tableReader;

            tableReaders.TryGetValue(signature, out tableReader);
            return(tableReader);
        }
Exemplo n.º 3
0
 public void SetInTableReaderCache(Type tableType, IList<string> columns, Delegate tableReader)
 {
     var signature = new TableReaderSignature(tableType, columns);
     tableReaders.MergeSafe(signature, tableReader);
 }
Exemplo n.º 4
0
        public void SetInTableReaderCache(Type tableType, IList <string> columns, Delegate tableReader)
        {
            var signature = new TableReaderSignature(tableType, columns);

            tableReaders.MergeSafe(signature, tableReader);
        }
Exemplo n.º 5
0
 public void SetInTableReaderCache(Type tableType, IList<string> columns, Delegate tableReader)
 {
     var signature = new TableReaderSignature(tableType, columns);
     lock (tableReaders)
         tableReaders[signature] = tableReader;
 }