Ido Samuelson

Notes, thoughts and exceptions

<December 2008>
SuMoTuWeThFrSa
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910


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



Tuesday, June 28, 2005 - Posts

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 Tuesday, June 28, 2005 11:55 AM by snick




Powered by Dot Net Junkies, by Telligent Systems