This topic has not yet been rated - Rate this topic

Compiler Error CS0567

Interfaces cannot contain operators

Operators are not permitted in interface definitions.

The following sample generates CS0567:

// CS0567.cs
interface IA
{
   int operator +(int aa, int bb);   // CS0567
}

class Sample
{
   public static void Main() 
   {
   }
}
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ