Quantcast
Channel: Parameters Count in C#.NET
Viewing all articles
Browse latest Browse all 4

Parameters Count in C#.NET

$
0
0

There is no index at Parameters.Count. The last index is Parameters.Count - 1 since the index is zero-based (the first position has an index of 0 and not an index of 1):

Parameters[Parameters.Count - 1] = new SqlParameter("@success", false);
Parameters[Parameters.Count - 1].Direction = ParameterDirection.Output;


Hope that helps.

Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question. Please don't ask several questions in the same thread.


Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>