Loop through enumeration
Posted
by Germ
on Stack Overflow
See other posts from Stack Overflow
or by Germ
Published on 2010-05-03T20:50:41Z
Indexed on
2010/05/03
20:58 UTC
Read the original article
Hit count: 256
What is best way to loop through an enumeration looking for a matching value?
string match = "A";
enum Sample { A, B, C, D }
foreach(...) {
//should return Sample.A
}
© Stack Overflow or respective owner