Important codings & concepts in web & window applications using microsoft technologies.
To Convert or cast Enum type to List type
List<type> objList = Enum.GetValues(typeof(SomeEnum)).Cast<SomeEnum>().ToList()
List<type> objList = Enum.GetValues(typeof(SomeEnum)).Cast<SomeEnum>().
ToList
No comments:
Post a Comment