What should I name my files with generic class definitions?

Posted by Tomas Lycken on Stack Overflow See other posts from Stack Overflow or by Tomas Lycken
Published on 2010-04-09T23:44:03Z Indexed on 2010/04/09 23:53 UTC
Read the original article Hit count: 276

Filed under:
|
|
|

I'm writing a couple of classes that all have generic type arguments, but I need to overload the classes because I need a different number of arguments in different scenarios. Basically, I have

 public class MyGenericClass<T> { ... }
 public class MyGenericClass<T, K> { ... }
 public class MyGenericClass<T, K, L> { ... }
 // it could go on forever, but it won't...

I want them all in the same namespace, but in one source file per class. What should I name the files? Is there a best practice?

© Stack Overflow or respective owner

Related posts about c#

Related posts about generics