This project is read-only.

SA1402 and Generics

Aug 31, 2013 at 3:32 PM
Edited Aug 31, 2013 at 3:32 PM
I think SA1402 is a great rule but I have problem with generics. I've got a class that uses the FUNC delegate, so the names roughly parallel that signature. That is, I have Operation<TType> , Operation<T, TType>, Operation<T1, T2, TType> and so on. According to SA1402, I need to come up with some strange decoration for the file name and then, if I make one change to the way 'Operation' works, I need to open up all the other files to make the same change. This seems less supportable. Does it make sense for SA1402 to allow generics of the same basic class (as well as partials) to reside in one file? In this case all permutations of the class Operation would reside in 'Operation.cs'.