Creating template with parameters on line basis - C#