自动生成在C#中的接口实现? [英] Auto-generate an interface implementation in C#?

查看:629
本文介绍了自动生成在C#中的接口实现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这是很懒散,但有基于Visual C#2010速成任何方式自动生成一个接口实现? (我没有在运行,但在设计时的意思是,就像一个代码片段)。也许与第三方工具?

I know this is quite lazy but, is there any way on Visual C# 2010 Express to auto-generate an interface implementation? (I don't mean at runtime but at design time, like a code snippet). Perhaps with a third party utility?

推荐答案

我不熟悉的快递不够了解,如果他们取消了这一功能,但你应该只可以用鼠标右键单击您的公共MyClass类:MyInterface的语句,然后选择实现Inteface

I'm not familiar with Express enough to know if they removed this feature, but you should just be able to right-click your public class MyClass : MyInterface statement and choose "Implement Inteface".

如果这是在快速删除,你可以随时使用 ReSharper的此功能。

If this is removed in Express, you can always use Resharper for this feature.

这篇关于自动生成在C#中的接口实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆