Export (0) Print
Expand All
Expand Minimize

Compiler Error CS0582

The Conditional not valid on interface members

ConditionalAttribute is not valid on an interface member.

The following sample generates CS0582:

// CS0582.cs
// compile with: /target:library
using System.Diagnostics;
interface MyIFace
{
   [ConditionalAttribute("DEBUG")]   // CS0582
   void zz();
}

Community Additions

ADD
Show:
© 2015 Microsoft