Ido Samuelson

Notes, thoughts and exceptions

<October 2008>
SuMoTuWeThFrSa
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678


Navigation

Blogs I read

Articles

My WorkSpaces

Subscriptions

News

Only 10 kind of people in the world. Those who understand binary and those who don't.

Post Categories

Article Categories



Generics is cool...

I finally got some time to play with generics...

The most usable generic class I use is as follow :

[Serializable]

public class EventArgs<T> : EventArgs

{

   private T t;

   public EventArgs(T t)

   {

       this.t = t;

   }

   public T Data

   {

      get { return t; }

   }

}

Just cool!!!

posted on Tuesday, June 28, 2005 11:55 AM by snick





Powered by Dot Net Junkies, by Telligent Systems