I need to add methods without subclassing to run time compiled assembly at
design time so that reflection also works .
I need to define single type methods in two assemblies.
I created project1 containing
public partial class Class1 {
public string Test1() {
return "";
}
}
and project2 containing
public partial class Class1 {
public string Test2() {
return Test1();
}
}
and added reference to project1 into project2.
Building solution causes error
The name 'Test1' does not exist in the current context
at line
return Test1();
How to fix ?
How to use this type of class extension ?
Andrus.