QuickCode is my new best friend
QuickCode, how I love thee. I'm still trying to keep myself from typing things I made templates for, but I'm coming along. I just now had to stop myself from writing a strongly typed collection and instead typed “colbase SnippetInfo SnippetProject“. Happiness!
FWIW, here's my template for colbase:
public class %%name%% : CollectionBase
{
public %%type%% this[int index]
{
get { return (%%type%%)InnerList[index]; }
set { InnerList[index] = value; }
}
public int Add(%%type%% %%type:l%%)
{
return InnerList.Add(%%type:l%%);
}
public void Remove(%%type%% %%type:l%%)
{
InnerList.Remove(%%type:l%%);
}
}