Click here to Skip to main content
15,890,399 members
Home / Discussions / C#
   

C#

 
GeneralRe: array Pin
Rao Rafique27-Jun-08 22:51
Rao Rafique27-Jun-08 22:51 
AnswerRe: array Pin
Simon P Stevens27-Jun-08 0:54
Simon P Stevens27-Jun-08 0:54 
Questionstring.Empty Vs "" Pin
Abhijit Jana26-Jun-08 23:53
professionalAbhijit Jana26-Jun-08 23:53 
AnswerRe: string.Empty Vs "" Pin
N a v a n e e t h26-Jun-08 23:58
N a v a n e e t h26-Jun-08 23:58 
GeneralRe: string.Empty Vs "" Pin
Paw Jershauge27-Jun-08 0:10
Paw Jershauge27-Jun-08 0:10 
GeneralRe: string.Empty Vs "" Pin
N a v a n e e t h27-Jun-08 0:37
N a v a n e e t h27-Jun-08 0:37 
GeneralRe: string.Empty Vs "" Pin
S. Senthil Kumar27-Jun-08 4:27
S. Senthil Kumar27-Jun-08 4:27 
AnswerRe: string.Empty Vs "" [modified] Pin
Paw Jershauge27-Jun-08 0:10
Paw Jershauge27-Jun-08 0:10 
string can have the value of null, Empty or "". Empty and null = no memory usage, i far as i know.
use this method to check the string: String.IsNullOrEmpty

Heres what they wrote on http://blogs.msdn.com/brada/archive/2003/04/22/49997.aspx[^]


Brad Abrams wrote:
As David implies, there difference between String.Empty and “” are pretty small, but there is a difference. “” actually creates an object, it will likely be pulled out of the string intern pool, but still… while String.Empty creates no object… so if you are really looking for ultimately in memory efficiency, I suggest String.Empty. However, you should keep in mind the difference is so trival you will like never see it in your code…

As for System.String.Empty or string.Empty or String.Empty… my care level is low Wink | ;-)


And by the way, please DO use google because they have the answer http://www.google.com[^]

Please read the first posting by Chris Maunder in this Forum http://www.codeproject.com[^]

With greate code, comes greate complexity, so keep it simple stupid...Shucks | :-\ Shucks | :-\

modified on Friday, June 27, 2008 6:22 AM

GeneralRe: string.Empty Vs "" Pin
Abhijit Jana27-Jun-08 0:40
professionalAbhijit Jana27-Jun-08 0:40 
GeneralRe: string.Empty Vs "" Pin
Guffa27-Jun-08 1:20
Guffa27-Jun-08 1:20 
GeneralRe: string.Empty Vs "" Pin
S. Senthil Kumar27-Jun-08 4:39
S. Senthil Kumar27-Jun-08 4:39 
AnswerRe: string.Empty Vs "" Pin
Christian Graus27-Jun-08 0:23
protectorChristian Graus27-Jun-08 0:23 
GeneralRe: string.Empty Vs "" Pin
N a v a n e e t h27-Jun-08 0:40
N a v a n e e t h27-Jun-08 0:40 
GeneralRe: string.Empty Vs "" Pin
Guffa27-Jun-08 1:31
Guffa27-Jun-08 1:31 
AnswerRe: string.Empty Vs "" Pin
Guffa27-Jun-08 1:43
Guffa27-Jun-08 1:43 
GeneralRe: string.Empty Vs "" Pin
Pete O'Hanlon27-Jun-08 1:53
mvePete O'Hanlon27-Jun-08 1:53 
GeneralRe: string.Empty Vs "" Pin
Mark Churchill27-Jun-08 16:39
Mark Churchill27-Jun-08 16:39 
AnswerRe: string.Empty Vs "" Pin
Jamal Mavadat27-Jun-08 5:34
Jamal Mavadat27-Jun-08 5:34 
Questionscalar variable Pin
j_tush26-Jun-08 23:52
j_tush26-Jun-08 23:52 
AnswerRe: scalar variable Pin
Christian Graus27-Jun-08 0:25
protectorChristian Graus27-Jun-08 0:25 
QuestionNeed help with an regular expression Pin
Paw Jershauge26-Jun-08 23:43
Paw Jershauge26-Jun-08 23:43 
AnswerRe: Need help with an regular expression Pin
Vimalsoft(Pty) Ltd27-Jun-08 0:59
professionalVimalsoft(Pty) Ltd27-Jun-08 0:59 
GeneralRe: Need help with an regular expression Pin
Paw Jershauge27-Jun-08 1:07
Paw Jershauge27-Jun-08 1:07 
AnswerRe: Need help with an regular expression Pin
Paw Jershauge27-Jun-08 1:58
Paw Jershauge27-Jun-08 1:58 
AnswerRe: Need help with an regular expression Pin
User 665827-Jun-08 4:19
User 665827-Jun-08 4:19 

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.