I can't figure out why it's complaining I must be passing the generic list wrong or something
I have in my class this:
static void Main(string[] args)
{
List<string> rightToCheck = null;
rightToCheck.Add("Delete")
;
UAuthorizationProvider provider = new UAuthorizationProvider();
IPrincipal principal;
provider.Authorize(princip
al, rightToCheck);
}
cannot convert from 'string' to 'System.Collections.Generi
c.List<str
ing>'
My Authorize method is declared like this:
public bool Authorize(IPrincipal principal, List<string> rightsRequested)
{
...
}
Start Free Trial