Search code examples
c#visual-studiogenericsnaming-conventions

What is the correct file name for the interface "IRepository<T>"


Just curious what people would name the file that contains the generic interface IRepository<T>.

IRepositoryT.cs?

Update

One minor point to add. Normally, when you change the name of a class file, Visual Studio asks if you want to do a rename on the class as well. In the case of IRepository<T>, no matter what I name the file (IRepository or IRepositoryT or IRepositoryOfT, etc.), the link between the file name and the class name is never established.


Solution

  • I would name it as I say it: IRepositoryOfT.cs