Click here to Skip to main content
15,892,927 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: String vs string.... Pin
  Forogar  17-Feb-17 10:52
professional  Forogar  17-Feb-17 10:52 
GeneralRe: String vs string.... Pin
User 1106097917-Feb-17 11:57
User 1106097917-Feb-17 11:57 
GeneralRe: String vs string.... Pin
jeron117-Feb-17 10:35
jeron117-Feb-17 10:35 
GeneralRe: String vs string.... Pin
User 1106097917-Feb-17 12:20
User 1106097917-Feb-17 12:20 
GeneralRe: String vs string.... https://msdn.microsoft.com/en-us/library/362314fe.aspx Pin
Eddy Vluggen17-Feb-17 12:49
professionalEddy Vluggen17-Feb-17 12:49 
GeneralRe: String vs string.... https://msdn.microsoft.com/en-us/library/362314fe.aspx Pin
Pete O'Hanlon18-Feb-17 1:41
mvePete O'Hanlon18-Feb-17 1:41 
GeneralRe: String vs string.... https://msdn.microsoft.com/en-us/library/362314fe.aspx Pin
User 1106097918-Feb-17 3:33
User 1106097918-Feb-17 3:33 
QuestionString or string? Pin
  Forogar  17-Feb-17 8:52
professional  Forogar  17-Feb-17 8:52 
When writing my C# code I was in the habit of using string (all lowercase) for strings declarations, etc. and String (capitalized) for method calls such as String.Empty and String.Format just as a sort of aide memoir that I was calling an object method.

As I started to create String extension methods I reviewed this habit of mine and decided this was a pointless differentiation and switched to just using string all the time. At the same time I decided that my using Int32 for methods such as Int32.TryParse and just int in declarations, etc. was also pointless and perhaps confusing to others and so switched to using int all the time instead.

It all compiles to the same IL code anyway so it was just a matter of style really.

What do you think?
- I would love to change the world, but they won’t give me the source code.

AnswerRe: String or string? Pin
Cornelius Henning17-Feb-17 9:06
professionalCornelius Henning17-Feb-17 9:06 
GeneralRe: String or string? Pin
PIEBALDconsult17-Feb-17 9:24
mvePIEBALDconsult17-Feb-17 9:24 
GeneralRe: String or string? Pin
User 1106097917-Feb-17 9:48
User 1106097917-Feb-17 9:48 
GeneralRe: String or string? Pin
Slacker00718-Feb-17 4:02
professionalSlacker00718-Feb-17 4:02 
GeneralRe: String or string? Pin
CDP180217-Feb-17 9:35
CDP180217-Feb-17 9:35 
GeneralRe: String or string? Pin
Cornelius Henning17-Feb-17 9:47
professionalCornelius Henning17-Feb-17 9:47 
GeneralRe: String or string? Pin
CDP180217-Feb-17 9:59
CDP180217-Feb-17 9:59 
AnswerRe: String or string? Pin
PIEBALDconsult17-Feb-17 9:21
mvePIEBALDconsult17-Feb-17 9:21 
GeneralRe: String or string? Pin
Richard Deeming17-Feb-17 9:30
mveRichard Deeming17-Feb-17 9:30 
GeneralRe: String or string? Pin
PIEBALDconsult17-Feb-17 11:12
mvePIEBALDconsult17-Feb-17 11:12 
GeneralRe: String or string? Pin
CDP180217-Feb-17 9:38
CDP180217-Feb-17 9:38 
GeneralRe: String or string? Pin
harold aptroot17-Feb-17 9:47
harold aptroot17-Feb-17 9:47 
GeneralRe: String or string? Pin
CDP180217-Feb-17 10:01
CDP180217-Feb-17 10:01 
GeneralRe: String or string? Pin
Richard Deeming17-Feb-17 10:34
mveRichard Deeming17-Feb-17 10:34 
GeneralRe: String or string? Pin
CDP180217-Feb-17 10:42
CDP180217-Feb-17 10:42 
GeneralRe: String or string? Pin
PIEBALDconsult17-Feb-17 11:04
mvePIEBALDconsult17-Feb-17 11:04 
GeneralRe: String or string? Pin
CDP180217-Feb-17 11:11
CDP180217-Feb-17 11:11 

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.