Is it possible to do the enum without having to do a cast?
class Program
{
private enum Subject
{
History = 100, Math =200, Geography = 300
}
static void Main(string[] args)
{
Console.WriteLine(addSubject((int) Subject.History)); //Is the int cast required.
}
private static int addSubject(int H)
{
return H + 200;
}
}