first_page the funky knowledge base
personal notes from way, _way_ back and maybe today

C# 2.0 Code: Converting from IDataParameter to DbParameter[] with Array.ConvertAll<>() and an Anonymous Delegate

private static DbParameter[] ConvertAllToDbParameter ( IDataParameter[] p_idata ) { DbParameter[] p = Array.ConvertAll<IDataParameter, DbParameter>( p_idata,

       delegate( IDataParameter from )
       {
           DbParameter to = from as DbParameter;
           return to;
       }

   );

return p;

}

mod date: 2007-08-29T19:15:09.000Z