Wednesday, February 8, 2012

cast string to enum

Colors colorValue = (Colors) Enum.Parse(typeof(Colors), colorString);

No comments:

Post a Comment