I have two file. One of this is a class declaration and other is interface declaration. Class should implements interface. How can I check in NRefactory if class implements interface methods?
I should give more details.
First file - for example:
class Test : IF
{
}
and the second
interface IF
{
void Foo();
}
I have to read these files and parse with NRefactory. I need to check if class Test implements method from interface IF.
Without compilation and loading compiled assembly.
I found solution in NRefactory code. I've modified this in order to achive my goals. First we should implement visitor which check if classes implements each method from interface:
And now we have to read all files, parse them and invoke above class in a following way: