I have created following class:
public static class Current
{
public static class User
{
public static int UserID { get; set; }
public static string UserName { get; set; }
public static List<UserRole> Role { get; set; }
}
public static class UserRole
{
public static int RoleID { get; set; }
public static string RoleName { get; set; }
}
}
But it will gives me an error: in this line
public static List<UserRole> Role { get; set; }
Error 1 'Framework.Security.Current.UserRole': static types cannot be used as type arguments