'member' : cannot be a member of interface 'interface'
An interface cannot contain a data member unless it is also a property.
Anything other than a property or member function is not allowed in an interface. Furthermore, constructors, destructors, and operators are not allowed.
The following sample generates C2844:
#using <mscorlib.dll> __gc __interface IFace { int i; // C2844 // try the line below to resolve the error // __property int Size { get; set; }; }; void main(){ }