[Mono-list] System.Array.Contains()?

Chris Seaton chris at chrisseaton.com
Mon Jan 15 10:23:19 EST 2007


System.Array has a Contains() method doesn't it? System.Array  
implements System.Collections.IList and I see the implementation in  
Array.cs, but when I try

string[] x = new string[]{"a", "b"};
Console.WriteLine(x.Contains("b"));

I get

error CS0117: `string[]' does not contain a definition for `Contains'

What's wrong? Using gmcs with latest mono release.

Thanks

Chris Seaton


More information about the Mono-list mailing list