在 MonoDevelop 中覆盖/实现成员 [英] Override/Implement Members in MonoDevelop

查看:26
本文介绍了在 MonoDevelop 中覆盖/实现成员的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在查看 MonoTouch 上的复数视频.有一次,培训师右键单击派生类的名称,在重构"菜单中有一个函数可以覆盖/实现该类的成员.然而,当我点击(最新版本)时,我只看到重命名".

I am working through the pluralsight videos on MonoTouch. At one point, the trainer right clicks on the name of a derived class, and in the 'refactor' menu there is a function to override/implement members of that class. When I click however (latest version), I see only 'rename.'

此链接中的人前段时间遇到了同样的问题,并提供了屏幕截图 - 但在 MonoTouch 讨论组中没有人回复:

The person in this link had the same issue some time ago and has included screenshots - but noone replied to them in the MonoTouch discussion group:

http://monotouch.2284126.n4.nabble.com/Right-Click-Class-name-gt-Refactor-gt-Override-Implement-members-tt4655504.html#none

有没有人遇到过(并解决!)这个问题?

Has anyone experienced (and resolved!) this?

推荐答案

在为 MD 3.0 进行的代码代码完成引擎的重写中,一些重构功能被重新组织或删除(暂时).

Some of the refactoring features were reorganized or removed (for now) in the rewrite of the code code completion engine that took place for MD 3.0.

您仍然可以通过两种方式访问​​此特定功能:

You can still access this particular feature two ways:

1) 输入覆盖"关键字后,MD 会提供您可以覆盖/实现的成员.选择一个会导致它被剔除.

1) After typing the "override" keyword, MD offers the members you can override/implement. Selecting one will cause it to be stubbed out.

2) 您可以使用类主体中的编辑->显示代码生成窗口"命令一次覆盖多个成员.默认情况下,此命令在 Mac 上没有按键绑定,但您可以在首选项中指定一个.

2) You can override many members at once using the "Edit->Show Code Generation Window" command in the class body. This command doesn't have a keybinding on Mac by default, but you can assign one in Preferences.

这篇关于在 MonoDevelop 中覆盖/实现成员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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