__value struct MyStruct : IMyInterface

  • Thread starter Thread starter Jose Ines Cantu Arrambide
  • Start date Start date
J

Jose Ines Cantu Arrambide

Hello,
When trying to declare a value type struct that inherits an interface, I
get a compiler error stating that a sealed class cannot be abstract. When I
change __value for __gc it builds ok. My question is: Structs that inherit
Interfaces have to be reference types? Is this also applicable in C#?

Thanks.
Jose.
 
You didn't implement one or more of the interface methods in your value
type.

Ronald Laeremans
Visual C++ team
 
Thanks, that was it.

Ronald Laeremans said:
You didn't implement one or more of the interface methods in your value
type.

Ronald Laeremans
Visual C++ team

interface, When
 
Back
Top