TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
vikash kumar
NA
18
4.1k
Output sequence of Enum in c#
Apr 26 2016 9:03 AM
Here is my enum with which i am just confused with output. Please explain its execution sequence.
public enum DayofWeek
{
Monday=1,Tuesday,Wednesday=1,Thursday,Friday=2,Saturday
}
static void Main(string[] args)
{
string[] values = Enum.GetNames(typeof(DayofWeek));
foreach (string s in values)
{
Console.WriteLine(s);
}
}
Reply
Answers (
2
)
timer opens two windows instead of one
Streaming an XML into a datagridview