microtuts

C#: Enum to List in One Line!

I’m not necessarily recommending you do it this way… but here you go:

Enum.GetValues(typeof(ProgramImageFileNames)).Cast().Select(v => v.ToString()).ToList()

Creating your first programming language is easier than you think.

Understanding how a programming language works is a surefire way to be a better developer. Read more.


Suggested Reading


written by Ryan Bosinger
Ryan is a web developer living and working in Banff Alberta. He also writes for giftsforpeoplewitheverything.com and freefoley.com.

3 Responses to “C#: Enum to List in One Line!”

  1. www says:

    Please let me know if you’re looking for a author for your
    site. You have some really great posts and I feel
    I would be a good asset. If you ever want to take some of the load
    off, I’d absolutely love to write some material for
    your blog in exchange for a link back to mine.

    Please shoot me an email if interested. Thanks!

  2. zenedee says:

    More about c# enum….C# Enum

    Zene

Leave a Reply