Click here to Skip to main content
12,454,477 members (55,729 online)
Click here to Skip to main content

Passing Enum type as a parameter

, 6 Sep 2011 CPOL
Perhaps I'm missing something here, but why not juststatic IEnumerable GetEnums(){ Type t = typeof (T); return from object value in Enum.GetValues(t) select (T)Enum.ToObject(t, value);}
We're sorry, but the article you are trying to view was deleted at 30 Jul 2014.

Please go to the C# Table of Contents to view the list of available articles in this section.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160826.1 | Last Updated 6 Sep 2011
Article Copyright 2011 by funazonki
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid