DataSet recordSet=null; try { ... //connection, command and adapter realated statements. adapter.Fill(recordSet); return recordSet; } catch (Exception ex) { throw; } finally { if (recordSet!=null) { recordSet.Dispose(); } recordSet=null; GC.Collect(); GC.Collect(2); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)