Click here to Skip to main content
15,888,124 members
Home / Discussions / C#
   

C#

 
GeneralRe: Naming Question Pin
Tim Groven25-Jan-12 8:21
Tim Groven25-Jan-12 8:21 
GeneralRe: Naming Question Pin
Tim Groven25-Jan-12 8:22
Tim Groven25-Jan-12 8:22 
GeneralRe: Naming Question Pin
Eddy Vluggen25-Jan-12 9:01
professionalEddy Vluggen25-Jan-12 9:01 
GeneralRe: Naming Question Pin
Pete O'Hanlon25-Jan-12 9:56
mvePete O'Hanlon25-Jan-12 9:56 
GeneralRe: Naming Question Pin
BobJanova25-Jan-12 8:11
BobJanova25-Jan-12 8:11 
GeneralRe: Naming Question Pin
PIEBALDconsult25-Jan-12 11:21
mvePIEBALDconsult25-Jan-12 11:21 
GeneralRe: Naming Question Pin
V.25-Jan-12 20:28
professionalV.25-Jan-12 20:28 
GeneralYou say filename I say file name. Or vice versa. Or neither. Pin
Keith Barrow25-Jan-12 23:40
professionalKeith Barrow25-Jan-12 23:40 
I personally prefer filename just as other people have stated, it is easy to read. Arguably it is becoming part of the language as a single word, I tend to think of filename as a more specific concept than name of a file that the version with the space implies. As an aside some dictionaries seem to agree .http://dictionary.reference.com/browse/filename[^].

FXCop disagrees and insists on fileName (see this blog post/[^]), and consistency are important. I'd rather agree with the framework and I assume MS uses FXCop's default rules .I can't find an example of fileName, but I'm 75% sure I've seen it somewhere... As a second point filename looks odd set aside filePath.

So the answer is for consistancy go for fileName, but filename isn't so bad that you shouldn't use it if you find it easier to read, the important thing is to stick to one version in your code.

GeneralRe: You say filename I say file name. Or vice versa. Or neither. Pin
Kevin McFarlane27-Jan-12 1:35
Kevin McFarlane27-Jan-12 1:35 
AnswerRe: Naming Question Pin
Abhinav S26-Jan-12 20:23
Abhinav S26-Jan-12 20:23 
GeneralRe: Naming Question Pin
AmitGajjar26-Jan-12 22:26
professionalAmitGajjar26-Jan-12 22:26 
GeneralRe: Naming Question Pin
Subin Mavunkal27-Jan-12 0:27
Subin Mavunkal27-Jan-12 0:27 
GeneralRe: Naming Question Pin
Kevin McFarlane27-Jan-12 1:30
Kevin McFarlane27-Jan-12 1:30 
QuestionBitmap.Lockbytes AccessViolation Pin
Ylno25-Jan-12 4:24
Ylno25-Jan-12 4:24 
AnswerRe: Bitmap.Lockbytes AccessViolation Pin
Luc Pattyn25-Jan-12 6:17
sitebuilderLuc Pattyn25-Jan-12 6:17 
GeneralRe: Bitmap.Lockbytes AccessViolation Pin
Ylno25-Jan-12 11:22
Ylno25-Jan-12 11:22 
AnswerRe: Bitmap.Lockbytes AccessViolation Pin
Luc Pattyn25-Jan-12 12:39
sitebuilderLuc Pattyn25-Jan-12 12:39 
GeneralRe: Bitmap.Lockbytes AccessViolation Pin
Ylno25-Jan-12 18:21
Ylno25-Jan-12 18:21 
AnswerRe: Bitmap.Lockbytes AccessViolation Pin
Luc Pattyn25-Jan-12 23:04
sitebuilderLuc Pattyn25-Jan-12 23:04 
GeneralRe: Bitmap.Lockbytes AccessViolation Pin
Ylno26-Jan-12 7:05
Ylno26-Jan-12 7:05 
Questioncontrols Pin
theanil25-Jan-12 3:40
theanil25-Jan-12 3:40 
AnswerRe: controls Pin
Pete O'Hanlon25-Jan-12 3:45
mvePete O'Hanlon25-Jan-12 3:45 
GeneralRe: controls Pin
theanil25-Jan-12 3:50
theanil25-Jan-12 3:50 
GeneralRe: controls Pin
Pete O'Hanlon25-Jan-12 3:57
mvePete O'Hanlon25-Jan-12 3:57 
GeneralRe: controls Pin
theanil25-Jan-12 4:01
theanil25-Jan-12 4:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.