Click here to Skip to main content
15,883,827 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
public static void aaaaa(SqlConnection connection, CommandType commandType, string commandText, out  List<abc>, params SqlParameter[] commandParameters)
{
    abc aa=new abc();
    SqlCommand cmd = new SqlCommand();
    aa=  cmd.ExecuteReader(commandText);   
    cmd.CommandTimeout = 1000000;
    cmd.Parameters.Clear();
}



is it possible pass class name dynamically to list as out parameter.
Posted
Updated 5-Oct-15 0:24am
v7
Comments
Richard MacCutchan 3-Oct-15 7:26am    
What does this mean?
[no name] 3-Oct-15 8:30am    
Elaborate more your question to get better response. When you say dynamically list object, what does it mean?
Sinisa Hajnal 5-Oct-15 6:08am    
Do you mean you want to pass the list containing any type? Why not just use List<object> as parameter?

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900