c# - IEnumerable list delplayed from enum values -
i have enum class below know how able send enum list of ienumerable dont see number actual name e.g. "monday" on list
public enum weekdays { monday = 1, tuesday = 2, wednesday = 3, thursday = 4, friday = 5, saturday = 6, sunday = 7 }
you can use enum.getnames() list of names.
string []names = enum.getnames(typeof(weekdays));
Comments
Post a Comment