Quote Originally Posted by jmcilhinney
I would guess that's because there already exists an SqlParameter class. You've created a name clash. I can't see why you need your SqlParameter structure by any name though. Just create an System.Data.SqlClient.SqlParameter object directly.
Oh, i see. but then how come it ran fine with VB?

is VB a little more lax regarding duplicate names??

Thanks, i will use the System.Data.SqlClient.SqlParameter object instead...

Thanks, Justin