Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convention for Filenames of Generic Classes

Tags:

c#

generics

I want to be able to distinguish between a generic and regular (non-generic) version of a class. Much like the .NET framework does with it's generic and non-generic versions of several of it's interfaces and collection classes. (Queue, Queue(T))

I generally like to follow the convention of one class per file (as in Java). Is there a common convention for naming files containing a single generic class? I'm mostly interested in Windows (NTFS specifically) but it seems like a good convention would be (at least a little) portable.

like image 895
Waylon Flinn Avatar asked Apr 29 '09 20:04

Waylon Flinn


1 Answers

At Microsoft, they use ClassNameOfT.cs.

like image 59
Mark Cidade Avatar answered Oct 13 '22 03:10

Mark Cidade