S
shapper
Hello,
I have a list of an enumeration: List<Role> Roles.
Consider Role as an enumeration with the values: A, B, C, D, E, F
The list Roles should always include one but ONLY one of the values:
A, C or F.
How can I check if a list includes exactly one of these 3 values?
Thanks,
Miguel
I have a list of an enumeration: List<Role> Roles.
Consider Role as an enumeration with the values: A, B, C, D, E, F
The list Roles should always include one but ONLY one of the values:
A, C or F.
How can I check if a list includes exactly one of these 3 values?
Thanks,
Miguel