Compiler Error CS0525
Visual Studio 2005
Error Message
Interfaces cannot contain fieldsAn interface can contain methods and properties but not fields.
The following sample generates CS0525:
// CS0525.cs
namespace x
{
public interface clx
{
public int i; // CS0525
}
}