Uses for static generic classes?

Posted by Hightechrider on Stack Overflow See other posts from Stack Overflow or by Hightechrider
Published on 2010-04-21T17:15:23Z Indexed on 2010/04/21 17:23 UTC
Read the original article Hit count: 284

Filed under:
|
|

What are the key uses of a Static Generic Class in C#? When should they be used? What examples best illustrate their usage?

e.g.

public static class Example<T>
{
   public static ...
}

Since you can't define extension methods in them they appear to be somewhat limited in their utility. Web references on the topic are scarce so clearly there aren't a lot of people using them. Here's a couple:-

http://ayende.com/Blog/archive/2005/10/05/StaticGenericClass.aspx

http://stackoverflow.com/questions/686630/static-generic-class-as-dictionary

© Stack Overflow or respective owner

Related posts about c#

Related posts about static