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 CS0182

An attribute parameter must be a constant, method, field, property, or class

An argument to an attribute was not specified correctly.

The following sample generates CS0182:

public class C {
   static string s;

   [System.Diagnostics.ConditionalAttribute(s)]   // CS0182
   // try the following line instead
   // [System.Diagnostics.ConditionalAttribute("s")]
   void nonConstantArgumentToConditional() {
   }
   public static void Main() {
   }
}