Click here to Skip to main content
15,900,818 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Choice of .NET Framework version Pin
Kubajzz16-Sep-10 0:16
Kubajzz16-Sep-10 0:16 
AnswerRe: Choice of .NET Framework version Pin
Pete O'Hanlon16-Sep-10 1:28
mvePete O'Hanlon16-Sep-10 1:28 
AnswerRe: Choice of .NET Framework version Pin
The Man from U.N.C.L.E.20-Sep-10 12:06
The Man from U.N.C.L.E.20-Sep-10 12:06 
QuestionProblem adding FFTW.dll as reference. [modified] Pin
bimbambumbum15-Sep-10 14:54
bimbambumbum15-Sep-10 14:54 
AnswerRe: Problem adding FFTW.dll as reference Pin
Luc Pattyn15-Sep-10 16:13
sitebuilderLuc Pattyn15-Sep-10 16:13 
GeneralRe: Problem adding FFTW.dll as reference Pin
bimbambumbum18-Sep-10 15:31
bimbambumbum18-Sep-10 15:31 
QuestionTyped Datasets and SSIS Pin
indian14315-Sep-10 7:12
indian14315-Sep-10 7:12 
QuestionMSIL String comparison question Pin
Gordon Kushner15-Sep-10 4:02
Gordon Kushner15-Sep-10 4:02 
Hey geniuses, it's me again. Google has failed me so I humbly come to you with a question about how .NET performs string comparisions.

A tiny bit of background, I'm reseaching how the use of string constants is better than hardcoding string literals (beyond good coding practice).

I wrote this code to check the various ways .NET handles strings.

string s = "howdy";

if (HELLO_W == "hello")
{
    Console.WriteLine("condition 3");
}


And then checked the IDL with ildasm.exe

IL_0033:  ldstr      "howdy"
  IL_0038:  stloc.1
  IL_0039:  ldc.i4.0
  IL_003a:  stloc.2
  IL_003b:  nop
  IL_003c:  ldstr      "condition 3"
  IL_0041:  call       void [mscorlib]System.Console::WriteLine(string)
  IL_0046:  nop


So where is the string comparision? When I compare two ints, I see the comparision command "ceq".

As always, I appreciate your insights and am not afraid to kiss a little butt to get it. Poke tongue | ;-P
AnswerRe: MSIL String comparison question Pin
Kubajzz15-Sep-10 4:37
Kubajzz15-Sep-10 4:37 
GeneralRe: MSIL String comparison question Pin
Gordon Kushner15-Sep-10 4:56
Gordon Kushner15-Sep-10 4:56 
GeneralRe: MSIL String comparison question Pin
Kubajzz15-Sep-10 5:04
Kubajzz15-Sep-10 5:04 
QuestionGeneral threading question Pin
Ray Cassick14-Sep-10 11:45
Ray Cassick14-Sep-10 11:45 
AnswerRe: General threading question Pin
Luc Pattyn14-Sep-10 12:00
sitebuilderLuc Pattyn14-Sep-10 12:00 
AnswerRe: General threading question Pin
The Man from U.N.C.L.E.14-Sep-10 12:37
The Man from U.N.C.L.E.14-Sep-10 12:37 
GeneralRe: General threading question Pin
Luc Pattyn14-Sep-10 13:47
sitebuilderLuc Pattyn14-Sep-10 13:47 
GeneralRe: General threading question Pin
The Man from U.N.C.L.E.14-Sep-10 22:28
The Man from U.N.C.L.E.14-Sep-10 22:28 
AnswerRe: General threading question Pin
Ennis Ray Lynch, Jr.15-Sep-10 4:20
Ennis Ray Lynch, Jr.15-Sep-10 4:20 
GeneralRe: General threading question Pin
Ray Cassick15-Sep-10 5:19
Ray Cassick15-Sep-10 5:19 
QuestionLoading of the image from a TIFF-file compressed by a JPEG algorithm Pin
Degun14-Sep-10 3:35
Degun14-Sep-10 3:35 
AnswerRe: Loading of the image from a TIFF-file compressed by a JPEG algorithm Pin
Dave Kreskowiak14-Sep-10 4:07
mveDave Kreskowiak14-Sep-10 4:07 
QuestionProblems with embed windows media player in VB.net form Pin
ocabrera7013-Sep-10 14:11
ocabrera7013-Sep-10 14:11 
QuestionTheory and practice of XML layout? Pin
Gregory Gadow13-Sep-10 10:39
Gregory Gadow13-Sep-10 10:39 
AnswerRe: Theory and practice of XML layout? Pin
PIEBALDconsult13-Sep-10 17:39
mvePIEBALDconsult13-Sep-10 17:39 
GeneralRe: Theory and practice of XML layout? Pin
Gregory Gadow14-Sep-10 5:06
Gregory Gadow14-Sep-10 5:06 
AnswerRe: Theory and practice of XML layout? Pin
Luc Pattyn14-Sep-10 5:17
sitebuilderLuc Pattyn14-Sep-10 5:17 

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.