我有interface
定義在C#.
是否有任何工具來自動創建(生成)該接口的所有空方法與默認返回類型? 例如我已經有:C#從接口生成代碼
interface ISampleInterface
{
void SampleMethod();
int func(int);
}
,我想:
// auto interface member implementation:
class ImplementationClass : ISampleInterface
{
void ISampleInterface.SampleMethod()
{
return;
}
// changed return type to int according to interface definintion
int ISampleInterface.func(int a)
{
return a;
}
}
resharper應該做 – csharpwinphonexaml
考慮「重新銳利」的工具。 – FosterZ
Resharper應該做 –