P
Philipp Sumi
Hello newsgroup
I want to add an interface declaration to a class using the EnvDTE
objects. Unfortunately, this code fails:
CodeClass cc = ....
cc.AddImplementedInterface("System.IComparable", (long)-1);
This code doesn't work - I'm always getting an exception that says
"Wrong Parameter".
CodeClass.AddBase() works, but the interface name is set immediately
behind the class name, ignoring the position parameter. This screws up
code for classes that inherit from other classes:
class myClass: System.IComparable, BaseClass instead of
class myClass: BaseClass, System.IComparable
Any workaround on this?
Thanks for your advice
Philipp
I want to add an interface declaration to a class using the EnvDTE
objects. Unfortunately, this code fails:
CodeClass cc = ....
cc.AddImplementedInterface("System.IComparable", (long)-1);
This code doesn't work - I'm always getting an exception that says
"Wrong Parameter".
CodeClass.AddBase() works, but the interface name is set immediately
behind the class name, ignoring the position parameter. This screws up
code for classes that inherit from other classes:
class myClass: System.IComparable, BaseClass instead of
class myClass: BaseClass, System.IComparable
Any workaround on this?
Thanks for your advice
Philipp