Click here to Skip to main content
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.
| Advertise | Privacy | Mobile
Web03 | 2.8.140827.1 | Last Updated 6 Sep 2011
Article Copyright 2011 by funazonki
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid