__value struct MyStruct : IMyInterface

  • Thread starter Jose Ines Cantu Arrambide
  • 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.
 
R

Ronald Laeremans [MSFT]

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

Ronald Laeremans
Visual C++ team
 
J

Jose Ines Cantu Arrambide

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top