Make StringComparer.Create throw ArgumentNullException (#26570)
[mono-project.git] / mcs / errors / cs1061-14.cs
blobe5c3db5d96a12048ec3889d7f2a2b0c10c8cb7df
1 // CS1061: Type `string' does not contain a definition for `Name' and no extension method `Name' of type `string' could be found. Are you missing an assembly reference?
2 // Line: 18
4 using System;
6 static class X
8 public static void Main ()
12 static void Foo ()
14 var fileName = "";
15 string[] all = null;
17 all.Each (x => {
18 var name = fileName.Name;
19 });
22 static void Each<T> (this T[] s, Action<T> a)