Enum.Parse the right way!

To compare strings with enums the right way, one should use enum.parse rather than comparing string literals. Following is an example where i am parsing…