Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspdotnet_website_programming thread: why? new IDataparameter[]{}


Message #1 by "jiang tang" <jtang63@y...> on Tue, 20 Aug 2002 18:59:05
Can anybody give me some insight about this statement from Marco 
Bellinaso's book asp.net website programming.

return RunProcedure("sp_Accounts_GetUsers", new IDataParameter[]
{}, "Users");

How can you possiblly "new" an Interface (IDataParameter)? Why is this a 
good programming practice?  If it's legal, why is it allowed here just to 
confuse people? Is there any ratinale behind this quirky practice?

JT Confused


  Return to Index