LINQ If .Any matches .Any
Posted
by molgan
on Stack Overflow
See other posts from Stack Overflow
or by molgan
Published on 2010-05-11T14:50:37Z
Indexed on
2010/05/11
14:54 UTC
Read the original article
Hit count: 379
Hello
I have 2 string arrays, and I would like to return if any of them exists in _authRole array. How is that done?
string[] _userRoles = userdata.Split(',');
string[] _authRoles = AuthRoles.Split(',');
bool isAuthorized = _authRoles.Any(_userRoles ??);
/M
© Stack Overflow or respective owner