Interop class not CLS-compliant

M

mhuhn.de

I have imported a C++ class into a .NET solution and use this class as
the return type for a method declared in an interface. Framework 2.0
gives me a warning that the method is not CLS compliant. I could add an
CLSCompliant attribute to all the methods in classes but not in the
method of the interface. Declaring the interface as non compliant
results in 40 more warnings for all the methods that use this
interface.

What is the best way to remove the warnings as I guess I cannot make
the class CLS compliant without rewriting it?
 

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