The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Unheard wish fulfilled

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Jeff Key

Posts: 481
Nickname: jeffreykey
Registered: Nov, 2003

Jeff Key is legally sane, but questionably competent.
Unheard wish fulfilled Posted: Mar 26, 2004 8:51 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Jeff Key.
Original Post: Unheard wish fulfilled
Feed Title: Jeff Key
Feed URL: http://www.asp.net/err404.htm?aspxerrorpath=/jkey/Rss.aspx
Feed Description: Topics revolve around .NET and the Windows platform.
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Jeff Key
Latest Posts From Jeff Key

Advertisement

Man oh man I can't wait to dig further into VS 2005 TP.  I only had a minute before work to very quickly check out a few things and noticed “Generate Method Stub” in the Refactoring menu.  Going on a hunch, I created an event handler for a dummy button on a form:

private void button3_Click(object sender, EventArgs e)
{
     string something = HelloMethod(sender);
}

HelloMethod didn't exist.  I put the cursor on the HelloMethod and selected Refactoring|Generate Method Stub and got the following:

private string HelloMethod(object sender)
{
    throw new NotImplementedException();
}

Are you kidding me?!?  Brilliant! 

  • It inferred the proper return type.
  • Properly named and typed the param.
  • Private visibility.
  • NotImplementedException by default.

I need this feature several times a day and I couldn't ask for a better implementation.  Thank you!

Read: Unheard wish fulfilled

Topic: Victim Of Peace Previous Topic   Next Topic Topic: The MS - EU ruling

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use