Did you know… You can Invoke a Static Method from the Class View? - #352
Today’s tip is actually a continuation from yesterday’s, as the Create Instance and Invoke Static Method actually are a part of the Class Diagram implementation. I don’t know too much about the Class Diagram, so I’ll just write a quick tip that these method exists and here’s the Invoke Static Method command in action.
When I run the Invoke Static Method command on the SayHello() method, I’m prompted whether to run the method.
Pressing Okay launching the command prompt window.
when terminating the command prompt (I have a Console.Read() going on here, so i press Enter to finish executing the method), another prompt appears that everything succeeded.
But if it didn’t (by closing the command prompt so that the Console.Read() never finished), I get this message box instead.
Technorati Tags: VS2005Tip,VS2008Tip
Comments
- Anonymous
April 03, 2009
本篇包括tip351-tip360http://www.watch-life.net/visual-studio/visual-studio-2008-tip-day-35.html#351、在类视...