T
Tim Conner
Hi,
I have a class that has defined like 30 string constants.
I need to test a string against each one of this contants
to see if it matches any of them.
I was thiking to have this constants in a
StringCollection, or String[], but I really don't want to
duplicate code, since this list can vary.
So, is there any approach to this programmatically ? I
mean, without having to write a very big "if...else
if..elseif ..." statement ?
I have a class that has defined like 30 string constants.
I need to test a string against each one of this contants
to see if it matches any of them.
I was thiking to have this constants in a
StringCollection, or String[], but I really don't want to
duplicate code, since this list can vary.
So, is there any approach to this programmatically ? I
mean, without having to write a very big "if...else
if..elseif ..." statement ?