First create the array using following code:
Array lstProvider = System.Enum.GetValues( typeof(CommonShared.EnumProvider)); Then you can directly call the following foreach loop:
foreach (CommonShared.EnumProvider enProvider in lstProvider)
Written by Manish
September 27, 2007 at 12:56 pm
Posted in .NET
Subscribe to comments with RSS.