Override/Implement Members in MonoDevelop

谁都会走 提交于 2019-12-20 05:37:04

问题


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.'

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?


回答1:


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) After typing the "override" keyword, MD offers the members you can override/implement. Selecting one will cause it to be stubbed out.

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.




回答2:


MonoDevelop 3.0 (and later) removed some features (including a few about refactoring) since they were not as stable, fully functional (complete) or buggy.

The same features (or similar ones) are likely to come back in future releases.



来源:https://stackoverflow.com/questions/12032880/override-implement-members-in-monodevelop

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!