2009-10-22 Marek Safar <marek.safar@gmail.com>
[mcs.git] / errors / cs0120-12.cs
blob860e75a60e39c01dfcda268cf8794051685d42da
1 // CS0120: An object reference is required to access non-static member `Foo.Bar()'
2 // Line: 22
4 using System;
6 public class Foo
8 public string Bar ()
10 return "hello";
12 public static string Bar (string thing)
14 return string.Format ("hello {0}", thing);
18 public class MainClass
20 public static void Main ()
22 Console.WriteLine (Foo.Bar ());