[Tip: Interface Implementation]

Q: 比如SuperMan: IFlyable. 在superMan class中,我们要实现IFlyable的接口函数。如何快速生成所有需要实现的接口函数,在SuperMan中?就是说如何瞬间添加:

#region IFlyable implementation.

public void func1()

{}

public void func2()

{}

#region

A:

1. 在要实现的interface上右键:implement interface

2. 光标移到要实现的interface上,虚晃一下 (或alt+shift+f10)

 

posted @ 2010-05-17 13:38  能巴  阅读(141)  评论(0编辑  收藏  举报