Click here to Skip to main content
13,093,944 members (59,530 online)
Click here to Skip to main content

Passing Enum type as a parameter

, 6 Sep 2011
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...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170813.1 | Last Updated 6 Sep 2011
Article Copyright 2011 by funazonki
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid