Click here to Skip to main content
15,893,722 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# articles Pin
Alex Cutovoi24-Sep-05 4:21
Alex Cutovoi24-Sep-05 4:21 
GeneralRe: C# articles Pin
CWinThread24-Sep-05 13:18
CWinThread24-Sep-05 13:18 
QuestionWhich is efficient? "" or string.Empty ? Pin
manivannan.p24-Sep-05 2:59
manivannan.p24-Sep-05 2:59 
AnswerRe: Which is efficient? "" or string.Empty ? Pin
mav.northwind24-Sep-05 3:17
mav.northwind24-Sep-05 3:17 
GeneralRe: Which is efficient? "" or string.Empty ? Pin
Guffa24-Sep-05 8:52
Guffa24-Sep-05 8:52 
GeneralRe: Which is efficient? "" or string.Empty ? Pin
mav.northwind24-Sep-05 9:29
mav.northwind24-Sep-05 9:29 
GeneralRe: Which is efficient? "" or string.Empty ? Pin
leppie24-Sep-05 14:34
leppie24-Sep-05 14:34 
GeneralRe: Which is efficient? "" or string.Empty ? Pin
Guffa25-Sep-05 5:36
Guffa25-Sep-05 5:36 
I expected it to be very little difference in the compiled code, but I didn't expect it to be as good as no difference at all. Smile | :)

Anyway, regardless of how it is currently implemented, the code that best resembles your intention will often be the most efficient. The compiler will be able to optimize the code better if the information you give it is better. In some future implementation or on a different system, using string.Empty might even be the most efficient way.

---
b { font-weight: normal; }

GeneralRe: Which is efficient? "" or string.Empty ? Pin
Nick Parker24-Sep-05 9:22
protectorNick Parker24-Sep-05 9:22 
AnswerRe: Which is efficient? "" or string.Empty ? Pin
Judah Gabriel Himango24-Sep-05 10:37
sponsorJudah Gabriel Himango24-Sep-05 10:37 
AnswerRe: Which is efficient? "" or string.Empty ? Pin
Mohamad Al Husseiny25-Sep-05 8:12
Mohamad Al Husseiny25-Sep-05 8:12 
QuestionOpening Word in WebBrowser control and selecting some text Pin
mirano24-Sep-05 2:28
mirano24-Sep-05 2:28 
QuestionHow to get handles opened by the current process? Pin
Anonymous24-Sep-05 0:28
Anonymous24-Sep-05 0:28 
AnswerRe: How to get handles opened by the current process? Pin
Dave Kreskowiak24-Sep-05 16:04
mveDave Kreskowiak24-Sep-05 16:04 
Question5 years of C# and still no open projects... Pin
Anonymous23-Sep-05 23:39
Anonymous23-Sep-05 23:39 
AnswerRe: 5 years of C# and still no open projects... Pin
Nick Parker24-Sep-05 9:27
protectorNick Parker24-Sep-05 9:27 
QuestionHow to print two languages in the same line? Pin
moh_monir23-Sep-05 22:13
moh_monir23-Sep-05 22:13 
Questionget the calling function and class name Pin
Anonymous23-Sep-05 20:26
Anonymous23-Sep-05 20:26 
AnswerRe: get the calling function and class name Pin
Nick Parker24-Sep-05 9:45
protectorNick Parker24-Sep-05 9:45 
QuestionRegular expression help me Pin
rockxuyenmandem23-Sep-05 19:07
rockxuyenmandem23-Sep-05 19:07 
AnswerRe: Regular expression help me Pin
Alex Korchemniy23-Sep-05 20:00
Alex Korchemniy23-Sep-05 20:00 
AnswerRe: Regular expression help me Pin
Guffa23-Sep-05 21:12
Guffa23-Sep-05 21:12 
AnswerRe: Regular expression help me Pin
Daniel Grunwald23-Sep-05 22:44
Daniel Grunwald23-Sep-05 22:44 
Questionrun a application at a specified time Pin
dhol23-Sep-05 17:39
dhol23-Sep-05 17:39 
AnswerRe: run a application at a specified time Pin
Dave Kreskowiak24-Sep-05 15:59
mveDave Kreskowiak24-Sep-05 15:59 

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.