Jeff Key

It works on my machine

Sponsors

My Job

My stuff

Old stuff

Useful Stuff

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%%);
 }
}

Comments

Daniel Fisher said:

I'm using QuickCode for some time now - it's great.

Look at my CollectionClassTemplate

<a href="http://www.lennybacon.com/2003-09-10T131031.aspx">http://www.lennybacon.com/2003-09-10T131031.aspx</a>
# September 10, 2003 7:10 AM

Jeff Key said:

Wow, bravo!
# September 10, 2003 9:31 AM