Keyword base is not available in the current context
The base keyword was used outside of a method, property, or constructor.
The following sample generates CS1512:
using System; class CMyClass { public String xx = base.ToString(); // CS1512 // try the following line instead // public String xx; public void x() { Console.WriteLine(base.ToString()); } public static void Main() { CMyClass z = new CMyClass(); z.x(); } }