I'm writing a custom library and some interfaces in c# and it will be reused by other developers. Some of the methods of my library always require certain lines to work so I'd like to automatically write these lines when other developers implement my interface. I've been looking for snippets, however I've seen that they must be imported by the snippet manager tool, but I'd like to step over this process and write them automatically when implementing the interface with ALT+CR.
public interface IFaceTranslator
{
List<byte[]> StartConfigOrder(Message msg_to_send)
{
//I'd like to automatically write these two lines when developer implements this function.
List<byte[]> commands = new List<byte[]>();
/*CODE FROM OTHER DEVELOPER*/
return commands;
}
}
Thanks.
List<byte[]>, he'll be super annoyed by your "utility".