0

I'm passing a method a list of MySqlParameters as follows:

ByVal Params As List(Of MySqlParameter)

If I have multiple parameters in this list and I want to check the value of a particular one, how can I get a reference to that parameter by ParameterName?

I know I can make it work passing a Dictionary or some other Collection, but I just wanted to know if there is a way of doing this.

Thanks

1 Answers1

1
Params.Find(Function(x) x.ParameterName = "MyParam")

Found at: Search for Object in Generic List

Community
  • 1
  • 1