Click here to Skip to main content
15,908,581 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 or string? Pin
Sander Rossel18-Feb-17 1:25
professionalSander Rossel18-Feb-17 1:25 
GeneralRe: String or string? Pin
User 1106097918-Feb-17 4:24
User 1106097918-Feb-17 4:24 
GeneralRe: String or string? Pin
Sander Rossel18-Feb-17 23:24
professionalSander Rossel18-Feb-17 23:24 
JokeRe: String or string? Pin
User 1106097919-Feb-17 2:46
User 1106097919-Feb-17 2:46 
AnswerRe: String or string? Pin
NickPace17-Feb-17 11:19
NickPace17-Feb-17 11:19 
GeneralRe: String or string? Pin
  Forogar  19-Feb-17 3:23
professional  Forogar  19-Feb-17 3:23 
GeneralRe: String or string? Pin
hooodaticus20-Feb-17 4:04
hooodaticus20-Feb-17 4:04 
AnswerRe: String or string? Pin
Gary R. Wheeler17-Feb-17 11:55
Gary R. Wheeler17-Feb-17 11:55 
I write process control applications, so I have to deal with lots of values that are defined as a particular number of bits in a network interface or a hardware register. For that reason I use Int32, UInt16, and so on. While I realize the chances of the aliases changing underlying type in .NET are effectively zero, I have too many battle scars from prior apps written in C. A variable declared as an int could be 16 bits, 32 bits, 64 bits, or something else.

That said, string's are another story entirely. Character sets, code pages, encoding, decoding, you still end up doing conversions of one sort or another regardless of your 'native' representation. I don't think I've ever declared a String in almost 10 years of C#. I always use the string alias.
Software Zen: delete this;

AnswerRe: String or string? Pin
Eddy Vluggen17-Feb-17 12:48
professionalEddy Vluggen17-Feb-17 12:48 
AnswerRe: String or string? Pin
Mark_Wallace18-Feb-17 3:16
Mark_Wallace18-Feb-17 3:16 
AnswerRe: String or string? Pin
Marc Clifton18-Feb-17 4:23
mvaMarc Clifton18-Feb-17 4:23 
GeneralRe: String or string? Pin
User 1106097918-Feb-17 4:41
User 1106097918-Feb-17 4:41 
AnswerRe: String or string? Pin
hooodaticus20-Feb-17 4:03
hooodaticus20-Feb-17 4:03 
AnswerRe: String or string? Pin
obermd20-Feb-17 4:33
obermd20-Feb-17 4:33 
GeneralRe: String or string? Pin
  Forogar  20-Feb-17 6:02
professional  Forogar  20-Feb-17 6:02 
GeneralQuick Website Builder Pin
John Krause17-Feb-17 7:26
John Krause17-Feb-17 7:26 
GeneralRe: Quick Website Builder Pin
Eddy Vluggen17-Feb-17 7:34
professionalEddy Vluggen17-Feb-17 7:34 
GeneralRe: Quick Website Builder Pin
John Krause17-Feb-17 7:46
John Krause17-Feb-17 7:46 
GeneralRe: Quick Website Builder Pin
Eddy Vluggen17-Feb-17 7:57
professionalEddy Vluggen17-Feb-17 7:57 
GeneralRe: Quick Website Builder Pin
John Krause17-Feb-17 8:05
John Krause17-Feb-17 8:05 
GeneralRe: Quick Website Builder Pin
Eddy Vluggen17-Feb-17 8:08
professionalEddy Vluggen17-Feb-17 8:08 
GeneralRe: Quick Website Builder Pin
John Krause17-Feb-17 8:18
John Krause17-Feb-17 8:18 
GeneralRe: Quick Website Builder Pin
Eddy Vluggen17-Feb-17 8:19
professionalEddy Vluggen17-Feb-17 8:19 
GeneralRe: Quick Website Builder Pin
Jeremy Falcon17-Feb-17 7:54
professionalJeremy Falcon17-Feb-17 7:54 
GeneralRe: Quick Website Builder Pin
Kent Sharkey17-Feb-17 8:50
staffKent Sharkey17-Feb-17 8:50 

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.