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 CS0577

Conditional not valid on 'function' because it is a constructor, destructor, operator, or explicit interface implementation

ConditionalAttribute cannot be applied to the specified methods.

The following sample generates CS0577:

interface I {
   void m();
}

public class MyClass : I {
   [System.Diagnostics.ConditionalAttribute("a")]   // CS0577
   // cannot use the above attribute on an explicit interface definition
   void I.m() {
   }

   public static void Main() {
   }
}