...
This can cause build errors in the generated code and in the stub code, in particular.
The work around is to add a "netName attribute " attribute to the coclass definition.
...
Code Block |
---|
The translator generates a stub for SSSPlitter control that does not compile. This is because there is a "name clash" between the class name and the namespace: namespace SSSplitter { // .... public class SSSplitter : System.Windows.Forms.Control { public SSSplitter.Panes Panes // This line throws a compiler error, C# assume SSSPlitter is the name of the class, not the namespace { set { } get { return null; } } } } |
The work around is script below shows how to add a "netName" attribute to the coclass definition.
...