What is the C# equiv to List(Of SqlParameter)) ?
I am trying to pass a list of SQLParamaters to an object and Cimperiali was kind enough to give me the code I needed but it was in VB.Net. I am writting my code in C# and can not figure out what the C# version of List(Of SqlParameter)) would be. I used an online converted that told me it was List<SqlParameter> but that does not seem to be working as I get the error "The namespace name List could not be found"
Re: What is the C# equiv to List(Of SqlParameter)) ?
Hi there,
List<SqlParameter> seems ok. Perhaps you can show us more of the code you have used and also include the using statements at the top of the file. Chances are you are missing a reference to System.Collections.Generic where List<T> is defined.
Re: What is the C# equiv to List(Of SqlParameter)) ?
Quote:
Originally Posted by
nelo
Hi there,
List<SqlParameter> seems ok. Perhaps you can show us more of the code you have used and also include the using statements at the top of the file. Chances are you are missing a reference to System.Collections.Generic where List<T> is defined.
The code is at home and I am at work but I am 99% sure I forgot the sysmte.collections.generic reference. When I get home I will check it and update. Thanks!
Re: What is the C# equiv to List(Of SqlParameter)) ?
Just checked the code. I was missing the collections call. Thanks.