I got a positive result when ctrl.Text happened to be an empty string (value was 0)
Is that the correct behavior? Do I need to check for an empty string?
"Next|Prev|First|Last|Search".IndexOf(ctrl.Text) > -1
Yes, in the msdn you will find.
if value is String.Empty, the return value is 0.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With