passing a function name as a paramter
-
Hi all, I am trying to pass a function name as a parameter and use it to create an OracleDataReader:
private void DataHandler(string type, string function) { AuthViewsLookup myLookup = new AuthViewsLookup(m_AppParam); OracleDataReader rdr = myLookup.function; while(rdr.Read()) { //do stuff } rdr.Close(); }
setting the reader to myLookup.function does not work, b/c it wants the actual function name. How can I make this work? Thanks for any help. -
Hi all, I am trying to pass a function name as a parameter and use it to create an OracleDataReader:
private void DataHandler(string type, string function) { AuthViewsLookup myLookup = new AuthViewsLookup(m_AppParam); OracleDataReader rdr = myLookup.function; while(rdr.Read()) { //do stuff } rdr.Close(); }
setting the reader to myLookup.function does not work, b/c it wants the actual function name. How can I make this work? Thanks for any help.Refer http://www.codeproject.com/dotnet/MethodName.asp[^] Sanjay Sansanwal www.sansanwal.com
-
Refer http://www.codeproject.com/dotnet/MethodName.asp[^] Sanjay Sansanwal www.sansanwal.com