NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error CS0234

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);
   }
}