|
-
March 1st, 2010, 06:55 AM
#1
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"
-
March 1st, 2010, 07:33 AM
#2
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.
-
March 1st, 2010, 01:54 PM
#3
Re: What is the C# equiv to List(Of SqlParameter)) ?
 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!
-
March 1st, 2010, 07:21 PM
#4
Re: What is the C# equiv to List(Of SqlParameter)) ?
Just checked the code. I was missing the collections call. Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|