>>1 of 2:
>>System.Data.Common.DbParameter DbParameterCollection[int index]
>>System.Data.Common.DbParameter DbParameterCollection[string parameterName]
>>
>>I'm using the second. What happens if you split it:
var v = command.Parameters["@Param3"];
>> var v2 = v.Value;
>
>I get compiler errors. Let me ask you, what tpe is your var "v"? I also get error on the "var"; what is it?
Are you using .NET 4.0 or prior version? What version of VS? var was introduced in the version .NET 4.0
If it's not broken, fix it until it is.
My Blog