Python's 'in' operator equivalent to C#

With Python, I can use 'in' operator for set operation as follows :

x = ['a','b','c']
if 'a' in x:
  do something

What's the equivalent in C#?

14
задан prosseek 16 February 2011 в 03:27
поделиться