Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
public enum color { red =1, blue=2 } color result; bool IsParsingCorrect = Enum.TryParse("red", true, out result); IsParsingCorrect = Enum.TryParse("green", true, out result);
No comments:
Post a Comment