S
shapper
Hello,
I am filtering items from a list as follows:
IQueryable<Account> students = accounts.Where(a => a.Roles.Contains
(givenRole)).AsQueryable();
Roles is a List<String>
How can I check if Roles.Contains givenRole ignoring case?
Which means that if Roles contains "Admin" then any givenRole as
"ADMIN", "Admin", "AdMin" would pass.
Thanks,
Miguel
I am filtering items from a list as follows:
IQueryable<Account> students = accounts.Where(a => a.Roles.Contains
(givenRole)).AsQueryable();
Roles is a List<String>
How can I check if Roles.Contains givenRole ignoring case?
Which means that if Roles contains "Admin" then any givenRole as
"ADMIN", "Admin", "AdMin" would pass.
Thanks,
Miguel