How to suppress the "new protected member declared in sealed class"?

N

NetronProject

My sealed class defines the necessary deserialization constructor:

protected SomeMethod(SerializationInfo info, StreamingContext
context){..}

which generates the well-known warning "new protected member declared
in sealed class". Since this constructor is used by the CLR and not
supposed to be visible externally I don't see the need to make it
public. Is it possible to avoid the compiler warning with some pragma?

Thanks, F.
 

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