whats wrong with this code, i try also Enum.Parse
but didnt work.
public enum RoleNames
{
Administrator,
[Description("Personnel Security")]
PrsonalSecurity,
}
foreach (RoleNames roleName in arRoles) //<<<error
{
if (IsCurrentUserInRole(roleName)) { return true; }
}
arRoles is ArrayList of RoleNames, which is passing as a parameters.