Share via


Generate Method Stub

Chris got his wish: We have Generate Method Stub in Whidbey.

There is a command & key binding in my build. It may not have made it into the last Community Preview, but it should be in the upcoming Beta. 

You can edit the test that gets inserted (its a file on disk) so you can have it insert your company standard header comment, or whatever. 

It inserts a method body which throws a NYI exception. One idea is that maybe the default should Debug.Assert as well as throw. This way, even if the call is under a try/catch block, you can stop immediately at the unimplemented method.

What do you think?

Comments

  • Anonymous
    May 10, 2004
    I think the NYI exception is fine. I like how it works in the March CTP build.
  • Anonymous
    May 12, 2004
    The NYI is fine. Maybe the Debug.Assert would be helpful, but I don't use that at the moment and I don't know anyone who does.

    So much goodness in one product. Longhorn has nothing on VS Whidbey! ;)