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

C#

 
GeneralRe: C# String Comparison Tests Pin
Kevin Marois16-Apr-15 3:32
professionalKevin Marois16-Apr-15 3:32 
GeneralRe: C# String Comparison Tests Pin
Pete O'Hanlon16-Apr-15 3:33
mvePete O'Hanlon16-Apr-15 3:33 
GeneralRe: C# String Comparison Tests Pin
Simon_Whale16-Apr-15 4:01
Simon_Whale16-Apr-15 4:01 
GeneralRe: C# String Comparison Tests Pin
Pete O'Hanlon16-Apr-15 4:28
mvePete O'Hanlon16-Apr-15 4:28 
GeneralRe: C# String Comparison Tests Pin
OriginalGriff16-Apr-15 4:52
mveOriginalGriff16-Apr-15 4:52 
GeneralRe: C# String Comparison Tests Pin
Pete O'Hanlon16-Apr-15 5:05
mvePete O'Hanlon16-Apr-15 5:05 
GeneralRe: C# String Comparison Tests Pin
Simon_Whale16-Apr-15 5:18
Simon_Whale16-Apr-15 5:18 
AnswerRe: C# String Comparison Tests Pin
Gyana_Ranjan Dash16-Apr-15 3:31
Gyana_Ranjan Dash16-Apr-15 3:31 
All are different functions but doing almost same work.So my choice better to use IsNullOrEmpty() as its safe and performance is good as compare to IsNullOrWhiteSpace().As IsNullOrWhiteSpace()can be removed if you are not using Unicode data.Apart from that other functions Equals and Length check functions having some performance issues in large projects.

So I prefer ISNullOrEmpty() in many situation.

At last its depend upopn the code what it needs.

Thanks.

GeneralRe: C# String Comparison Tests Pin
Pete O'Hanlon16-Apr-15 8:29
mvePete O'Hanlon16-Apr-15 8:29 
AnswerRe: C# String Comparison Tests Pin
molesworth16-Apr-15 7:01
molesworth16-Apr-15 7:01 
Questionservice top when list is emty c# Pin
Member 1148462415-Apr-15 23:48
Member 1148462415-Apr-15 23:48 
AnswerRe: service top pulling when list is emty c# Pin
OriginalGriff16-Apr-15 0:55
mveOriginalGriff16-Apr-15 0:55 
GeneralMessage Closed Pin
16-Apr-15 1:46
Member 1148462416-Apr-15 1:46 
GeneralRe: service top pulling when list is emty c# Pin
OriginalGriff16-Apr-15 1:59
mveOriginalGriff16-Apr-15 1:59 
GeneralMessage Closed Pin
16-Apr-15 2:11
Member 1148462416-Apr-15 2:11 
GeneralRe: service top pulling when list is emty c# Pin
OriginalGriff16-Apr-15 2:29
mveOriginalGriff16-Apr-15 2:29 
GeneralRe: service top pulling when list is emty c# Pin
Pete O'Hanlon16-Apr-15 2:31
mvePete O'Hanlon16-Apr-15 2:31 
GeneralMessage Closed Pin
16-Apr-15 2:43
Member 1148462416-Apr-15 2:43 
GeneralRe: service top pulling when list is emty c# Pin
Pete O'Hanlon16-Apr-15 2:53
mvePete O'Hanlon16-Apr-15 2:53 
GeneralRe: service top pulling when list is emty c# Pin
Sascha Lefèvre16-Apr-15 3:19
professionalSascha Lefèvre16-Apr-15 3:19 
GeneralRe: service top pulling when list is emty c# Pin
Richard MacCutchan16-Apr-15 3:44
mveRichard MacCutchan16-Apr-15 3:44 
GeneralRe: service top pulling when list is emty c# Pin
Sascha Lefèvre16-Apr-15 3:58
professionalSascha Lefèvre16-Apr-15 3:58 
GeneralRe: service top pulling when list is emty c# Pin
Richard MacCutchan16-Apr-15 4:09
mveRichard MacCutchan16-Apr-15 4:09 
GeneralRe: service top pulling when list is emty c# Pin
Sascha Lefèvre16-Apr-15 4:27
professionalSascha Lefèvre16-Apr-15 4:27 
GeneralRe: service top pulling when list is emty c# Pin
Richard MacCutchan16-Apr-15 4:31
mveRichard MacCutchan16-Apr-15 4:31 

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.