Wednesday

resharper templates


To add new user-template in resharper from top menu in visual studio click on Resharper / Live templates select File Templates tab.
Find "User templates" and click on new template in toolbar .
Below is sample of command template:
Namespace variable will be "Default namespace for the current file".
Class variable will be "Current file name without extension".


       
namespace $NAMESPACE$
{
/// <summary>
/// $CLASS$ Linq Command
// </summary>
public class $CLASS$ : BaseLinqCommand, ILinqCommand
{
public $CLASS$() {
//constructor add your incoming params here
}

public bool CanExecute(Scope scope)
{
//add aditional validation here
return base.CanExecute(scope);
}

public void Execute(Scope scope)
{
//oly: main execution code goes here
}

}
}

No comments:

imagemagic add text to image

rem different types of text annotations on existing images rem cyan yellow orange gold rem -gravity SouthWest rem draw text and anno...