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 Warning (level 1) CS0618

'member' is obsolete: 'text'

A class member was marked with the obsolete attribute, such that a warning will be issued when the class member is referenced.

The following sample generates CS0618:

public class C {
   [obsolete("Use newMethod instead", false)]   // warn if referenced
   public static void m2() {
   }

   public static void newMethod() {
   }
}

class MyClass {
   public static void Main() {
      C.m2();  // warning here: generates message "C.m() is obsolete 
               // "Use newMethod instead""
   }
}