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() { } }