Can I convert the string value from web API array to enum value?

I can parse whatever strings an array has from a weather API into the console.

But if I want to compare to lets say a string that says ''cloudy'' I assume I'll have to convert every possible string to enums so I can actually use certain weather conditions to trigger something?

.net 2.0 compatible only by the way so I couldnt just .Tryparse()

by Halfcookedrice via /r/csharp

Leave a Reply