自动生成在C#中的接口实现?

编程入门 行业动态 更新时间:2024-10-28 04:17:51
本文介绍了自动生成在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#中的接口实现?

本文发布于:2023-05-26 06:15:09,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/252242.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自动生成   接口

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!