S
shapper
Hello,
I have a List<Role>, Roles, where Role has two properties: Type and
Description. Then I have: string [] MyRoles.
I need to define a CSV list created by all Desciptions of the
List<Role> which type is contained in string [] MyRoles.
string RolesCSV = Roles.Join(",", r => MyRoles.Contains(r.Type));
I get:
String[] does not contain a definition Contains.
.... But it is in the list as I right ...
What am I doing wrong?
Thanks,
Miguel
I have a List<Role>, Roles, where Role has two properties: Type and
Description. Then I have: string [] MyRoles.
I need to define a CSV list created by all Desciptions of the
List<Role> which type is contained in string [] MyRoles.
string RolesCSV = Roles.Join(",", r => MyRoles.Contains(r.Type));
I get:
String[] does not contain a definition Contains.
.... But it is in the list as I right ...
What am I doing wrong?
Thanks,
Miguel