Wednesday, April 2, 2008

I- Catcher Console- Web Monitor :de

Visual Studio: methods subsequently generate

Since Visual Studio 2008 methods can be generated automatically later. Suppose we want to (later) generate the following method:
 processDir (. Listfiles,  this  _strPath pattern); 

Now write this down as a simple method call, although it does not exist. A subsequent right-click the method name and a click on the entry "Generate Method Stub" The specified method produces including the signature given in the current class.


Click for full size

The following method is generated:
  private   void  processDir (List \u0026lt; string > list files,  string  p, string pattern  ) 

{throw new NotImplementedException ();}

The generated method is private , possibly return values are also created.

This allows one to write the code for the application in full, without being interrupted by other methods in between, you will implement later.

0 comments:

Post a Comment