The type or namespace name 'name' does not exist in the class or namespace 'scope'
A type was expected. One place where this could happen is if you pass a variable name to the typeof operator.
The following sample generates CS0234:
using System; public class MyClass { public static void Main() { string i = "hello world"; Type t = typeof(i); // CS0234 // try the following line instead // Type t = typeof(string); Console.WriteLine(i); Console.WriteLine(t); } }