There can be no real or wrong.
This is something that is purely subjective and fully refers to the community in which you work. If FxCop and StyleCop and the .net code you regularly encounter use fileName, then use fileName. If he uses something else, then use all that is.
Your first priority should probably be consistent with the template in your own code, and then fit your community.
In this particular case .net Reflector shows a lot of .net code using fileName, so I would go with this template personally.
If you were in the java world and ran PMD and checkstyle, and their apis often used the file name, then I would go with that.
In addition to the Wikipedia article, there is also Kernigan and Pike programming practice. The first chapter in it addresses many of the problems with naming and code negotiation.
Larry Olson Apr 12 '09 at 18:11 2009-04-12 18:11
source share