using System;
using System.Linq;
using System.Collections.Generic;
namespace MyCompiler
{
class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Hello world!");
var list = Enum.GetValues(typeof(Week)).Cast<int>().ToList();
var list2 = Enum.GetNames(typeof(Week)).ToList();
var final = list2.Zip(list,(l,m) => new {Name = l,Value = m});
foreach(var obj in final)
{
Console.WriteLine("{0} => {1}",obj.Name,obj.Value);
}
}
}
public enum Week
{
Monday,
TuesDay,
WednessDay,
ThursDay,
FriDay,
SaturDay,
SunDay
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: