I have a class as:
Class MyClass
{
public MyClass { ... }
public string Name { get { ... } }
public int IdNumber { get { ... } set { ... } }
public void GenerateNme {...}
}
It is just a sample class. I wish to generate an Interface from it. Like, MyClass is implementing the IMyClass interface. I wish the output to be
public Interface IMyClass
{
string Name { get; }
int IdNumber { get; set; }
void GenerateNumber();
}
and
MyClass : IMyClass
{
}
It can be done manually, but I was just curious to know, is there another simple method to follow to accomplish this?
class
" (lower case) and some kind of qualifier before "MyClass
", respectively? Or is the syntax highlighter just weird? Or is the last part actually correct?